Fix workflows yml structure

pull/3299/head
ioedeveloper 2 years ago committed by Aniket
parent b7ffa0d975
commit cfc222f466
  1. 25
      libs/remix-ui/workspace/src/lib/utils/constants.ts

@ -1,9 +1,9 @@
export const ROOT_PATH = '/' export const ROOT_PATH = '/'
export const solTestYml = ` export const solTestYml = `
name: Running Solidity Unit Tests name: Running Solidity Unit Tests
on: [push] on: [push]
jobs: jobs:
run_sol_contracts_job: run_sol_contracts_job:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: A job to run solidity unit tests on github actions CI name: A job to run solidity unit tests on github actions CI
@ -15,12 +15,12 @@ export const solTestYml = `
with: with:
test-path: 'tests' test-path: 'tests'
compiler-version: '0.8.15' compiler-version: '0.8.15'
` `
export const tsSolTestYml = ` export const tsSolTestYml = `
name: ts-sol-test name: ts-sol-test
on: [push] on: [push]
jobs: jobs:
run_sample_test_job: run_sample_test_job:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: A job to run mocha and chai tests for solidity on github actions CI name: A job to run mocha and chai tests for solidity on github actions CI
@ -33,11 +33,12 @@ export const tsSolTestYml = `
test-path: 'tests' test-path: 'tests'
contract-path: 'contracts' contract-path: 'contracts'
compiler-version: '0.8.7' compiler-version: '0.8.7'
` `
export const slitherYml = ` export const slitherYml = `
name: Slither Analysis name: Slither Analysis
on: [push] on: [push]
jobs:
jobs:
analyze: analyze:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@ -45,4 +46,4 @@ export const slitherYml = `
- uses: crytic/slither-action@v0.2.0 - uses: crytic/slither-action@v0.2.0
with: with:
target: 'contracts/' target: 'contracts/'
` `

Loading…
Cancel
Save