Setting `working-directory` config to a lint job
`Working-directory` configs provided for each `run` action have been
replaced by general config on a job level.
@@ -22,6 +22,9 @@ on:
jobs:
lint:
runs-on: ubuntu-latest
+ defaults:
+ run:
+ working-directory: ./solidity
steps:
- uses: actions/checkout@v2
@@ -42,13 +45,10 @@ jobs:
${{ runner.os }}-
- name: Install dependencies
- working-directory: ./solidity
run: npm ci
- name: Compile contracts
- working-directory: ./solidity
run: npx truffle compile
- name: Lint
- working-directory: ./solidity
run: npm run lint
\ No newline at end of file
