diff --git a/.github/workflows/compliance.yaml b/.github/workflows/compliance.yaml new file mode 100644 index 000000000..5f9941347 --- /dev/null +++ b/.github/workflows/compliance.yaml @@ -0,0 +1,29 @@ +on: + push: + branches: + - main + pull_request: + +name: ci +jobs: + lint: + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v3 + - name: Install protobuf + run: sudo apt-get -y install protobuf-compiler + - name: Install toolchain + uses: dtolnay/rust-toolchain@stable + with: + components: clippy + toolchain: 1.71.0 + - name: Install toolchain (nightly) + run: rustup toolchain add nightly --component rustfmt --profile minimal + - uses: Swatinem/rust-cache@v2 + with: + cache-on-failure: true + - name: Install Foundry + uses: foundry-rs/foundry-toolchain@v1 + - name: Run spec tests + run: ./test/spec-tests/ci/run-spec-tests.sh