chore(StdAssertions): manually invert conditions #993
Workflow file for this run
This file contains hidden or 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: CI | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
name: build +${{ matrix.toolchain }} ${{ matrix.flags }} | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
strategy: | |
fail-fast: false | |
matrix: | |
toolchain: [stable, nightly] | |
flags: | |
- "" | |
- --via-ir | |
- --use solc:0.8.17 --via-ir | |
- --use solc:0.8.17 | |
- --use solc:0.8.0 | |
- --use solc:0.7.6 | |
- --use solc:0.7.0 | |
- --use solc:0.6.2 | |
- --use solc:0.6.12 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: foundry-rs/foundry-toolchain@v1 | |
- run: forge --version | |
- run: forge build --skip test --deny-warnings ${{ matrix.flags }} | |
# via-ir compilation time checks. | |
- if: contains(matrix.flags, '--via-ir') | |
run: forge build --skip test --deny-warnings ${{ matrix.flags }} --contracts 'test/compilation/*' | |
test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
strategy: | |
fail-fast: false | |
matrix: | |
toolchain: [stable, nightly] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: ${{ matrix.toolchain }} | |
- run: forge --version | |
- run: forge test -vvv | |
fmt: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: foundry-rs/foundry-toolchain@v1 | |
- run: forge --version | |
- run: forge fmt --check | |
typos: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: crate-ci/typos@v1 | |
ci-success: | |
runs-on: ubuntu-latest | |
if: always() | |
needs: | |
- build | |
- test | |
- fmt | |
- typos | |
timeout-minutes: 10 | |
steps: | |
- name: Decide whether the needed jobs succeeded or failed | |
uses: re-actors/alls-green@release/v1 | |
with: | |
jobs: ${{ toJSON(needs) }} |