Implement DOOM INDEX NFT Contract V1 #9
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: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| checks: | |
| runs-on: ubuntu-latest | |
| env: | |
| SOLANA_VERSION: 2.2.1 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: 1.3.10 | |
| - name: Setup Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt, clippy | |
| - name: Setup Solana Tooling | |
| uses: solana-developers/github-actions/setup-all@c6bdbee471a1a4f40490af635e9af66071d36853 # v0.2.7 | |
| with: | |
| solana_version: ${{ env.SOLANA_VERSION }} | |
| - name: Cache Rust | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Install JavaScript dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Check TypeScript formatting | |
| run: bun run format:ts:check | |
| - name: Check Rust formatting | |
| run: cargo fmt --all --check | |
| - name: Run Clippy | |
| run: cargo clippy --workspace --all-targets --all-features -- -D warnings | |
| - name: Run Rust tests | |
| run: cargo test --workspace --exclude tests | |
| - name: Run contract tests | |
| run: bun run test:contract |