chore: pin Foundry in CI #27
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Foundry | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
test: | |
name: Foundry Tests Linux | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: Build CLI | |
run: | | |
npm install | |
mv build/axiom-std-cli-build.js build/axiom-std-cli-temp-build.js | |
cp src/AxiomCli.sol src/AxiomCli.sol.temp | |
npm run build | |
diff build/axiom-std-cli-build.js build/axiom-std-cli-temp-build.js | |
diff src/AxiomCli.sol src/AxiomCli.sol.temp | |
rm build/axiom-std-cli-temp-build.js | |
rm src/AxiomCli.sol.temp | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly-293fad73670b7b59ca901c7f2105bf7a29165a90 | |
- name: Check forge version | |
run: forge --version | |
- name: Check forge tree | |
run: forge tree | |
- name: Run Foundry tests | |
run: | | |
export PROVIDER_URI_SEPOLIA=${{ secrets.PROVIDER_URI_SEPOLIA }} | |
RUST_BACKTRACE=1 forge test -vvv | |
test-mac: | |
name: Foundry Tests Mac | |
runs-on: macos-14 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: Build CLI | |
run: | | |
npm install | |
mv build/axiom-std-cli-build.js build/axiom-std-cli-temp-build.js | |
cp src/AxiomCli.sol src/AxiomCli.sol.temp | |
npm run build | |
diff build/axiom-std-cli-build.js build/axiom-std-cli-temp-build.js | |
diff src/AxiomCli.sol src/AxiomCli.sol.temp | |
rm build/axiom-std-cli-temp-build.js | |
rm src/AxiomCli.sol.temp | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly-293fad73670b7b59ca901c7f2105bf7a29165a90 | |
- name: Check forge version | |
run: forge --version | |
- name: Check forge tree | |
run: forge tree | |
- name: Run Foundry tests | |
run: | | |
export PROVIDER_URI_SEPOLIA=${{ secrets.PROVIDER_URI_SEPOLIA }} | |
RUST_BACKTRACE=1 forge test -vvv | |