Skip to content

Commit

Permalink
Update GHA - compile contracts and share between jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
nmlinaric committed Jan 30, 2023
1 parent 385fd94 commit 8bc6a74
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,20 @@ jobs:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: make install-deps
- name: Compile contracts
run: make compile
- name: Store contract artifacts
uses: actions/upload-artifact@v3
with:
name: contracts-artifacts
path: build
- name: Ganache Tests
run: |
SILENT=true make start-ganache
make test
coverage:
needs: Test
needs: test
name: Coverage
runs-on: ubuntu-latest
strategy:
Expand All @@ -45,6 +52,11 @@ jobs:
uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
- name: Download contracts artifacts
uses: actions/download-artifact@v3
with:
name: contracts-artifacts
path: build
- name: Yarn install
run: yarn install --frozen-lockfile
- name: Run coverage
Expand Down

0 comments on commit 8bc6a74

Please sign in to comment.