Skip to content

Commit

Permalink
chore: update gh worflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ducthotran2010 committed Nov 3, 2023
1 parent 05e27f0 commit 62f9bdc
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 27 deletions.
41 changes: 15 additions & 26 deletions .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,38 +22,27 @@ concurrency:
cancel-in-progress: true

jobs:
nodejs:
check:
strategy:
fail-fast: true

name: Foundry project
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repo'
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
- uses: actions/checkout@v4
with:
submodules: recursive

- name: 'Setup Node'
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 #v3.4.1
with:
node-version: v16.16.0

- name: Github private package token in npmrc
run: |
echo "@axieinfinity:registry=https://npm.pkg.github.com/" >> .npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc
- name: 'Run install'
uses: borales/actions-yarn@97ba8bebfe5b549bb7999261698a52a81fd62f1b #v4.2.0
with:
cmd: install

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@cb603ca0abb544f301eaed59ac0baf579aa6aecf #v1.0.10

- name: 'Run Compile'
uses: borales/actions-yarn@97ba8bebfe5b549bb7999261698a52a81fd62f1b #v4.2.0
with:
cmd: compile
- name: Run Forge build
run: |
forge --version
forge build --sizes
id: build

- name: 'Run Test'
uses: borales/actions-yarn@97ba8bebfe5b549bb7999261698a52a81fd62f1b #v4.2.0
with:
cmd: test:ci
- name: Run Forge tests
run: |
forge test --no-match-path '*forking/*' -vvv
id: test
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
],
"scripts": {
"prepare": "husky install",
"test:ci": "forge test --no-match-path '*forking/*' -vvv && hardhat test",
"test:ci": "forge test --no-match-path '*forking/*' -vvv",
"sourcify": "hardhat sourcify --endpoint https://sourcify.roninchain.com/server"
},
"lint-staged": {
Expand Down

0 comments on commit 62f9bdc

Please sign in to comment.