dev: migrate to sn foundry #1086
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: test | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Step 1 - Check out main branch | |
uses: actions/checkout@v3 | |
- name: Step 2 - Getting scarb | |
uses: software-mansion/setup-scarb@v1.3.2 | |
- name: Step 3 - Trying to build | |
run: scarb build | |
test: | |
needs: build | |
name: test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: foundry-rs/setup-snfoundry@v3 | |
- uses: software-mansion/setup-scarb@v1.3.2 | |
- run: scarb test | |
check-format: | |
needs: build | |
name: check-format | |
runs-on: ubuntu-latest | |
steps: | |
- name: Step 1 - Check out main branch | |
uses: actions/checkout@v3 | |
- name: Step 2 - Getting scarb | |
uses: software-mansion/setup-scarb@v1.3.2 | |
- name: Step 3 - Checking formatting | |
run: scarb fmt --check | |
gas-report: | |
needs: test | |
name: gas-report | |
runs-on: ubuntu-latest | |
steps: | |
- name: Step 1 - Check out main branch | |
uses: actions/checkout@v3 | |
- name: Step 2 - Getting scarb | |
uses: software-mansion/setup-scarb@v1.3.2 | |
- uses: foundry-rs/setup-snfoundry@v3 | |
- name: Step 3 - Generate and compare gas report | |
run: ./scripts/generate_gas_report.sh | |
shell: bash |