Skip to content

Commit

Permalink
ci: workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
PacificYield committed Jan 9, 2025
1 parent b0214c9 commit 9a63076
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,21 @@ jobs:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: Checkout
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: stable
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: ${{ matrix.node-version }}
- run: cp ./contracts/.env.example ./contracts/.env
- run: npm --prefix ./contracts ci --include=optional
- run: npm --prefix ./contracts run prettier:check
- name: "npm CI test"
- name: Prettier check
run: npm --prefix ./contracts run prettier:check
- name: "Run JS/TS tests"
run: npm --prefix ./contracts run test:mock
- name: "Run forge tests"
run: "cd contracts && forge test"

0 comments on commit 9a63076

Please sign in to comment.