diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..ae747ba --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,31 @@ +name: test + +on: + workflow_dispatch: + pull_request: + push: + branches: + - main + +jobs: + test: + strategy: + fail-fast: true + + name: Anchor Test + runs-on: ubuntu-latest + container: backpackapp/build:v0.29.0 + steps: + - uses: actions/checkout@v4 + + - run: rustup toolchain list + - run: rustup default stable + - run: rustup toolchain list + + - run: cargo fmt --check --all + + - run: cargo check + + - run: cargo clippy + + - run: anchor test