Rename CI workflow to 'Tests' so badge says 'Tests passing' #7
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: Tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| anchor: | |
| name: Anchor Program Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - name: Install Solana CLI | |
| run: | | |
| sh -c "$(curl -sSfL https://release.anza.xyz/v3.1.8/install)" | |
| echo "$HOME/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH | |
| - name: Install system dependencies | |
| run: sudo apt-get update && sudo apt-get install -y libudev-dev pkg-config | |
| - name: Install Anchor CLI | |
| run: cargo install --git https://github.com/coral-xyz/anchor --tag v0.32.1 anchor-cli | |
| - name: Run Anchor tests | |
| run: | | |
| solana-keygen new --no-bip39-passphrase | |
| npm install | |
| anchor test | |
| client: | |
| name: Client Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - run: cd client && npm install && npm test && npm run build | |
| server: | |
| name: Server Auth Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - run: cd server/tests-rs && cargo test |