perf: improve tests #491
This file contains 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: | |
branches: | |
- '*' | |
jobs: | |
setup-dependencies: | |
runs-on: ${{matrix.os}} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
node-version: [16, 18, 20] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/[email protected] | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: 'pnpm' | |
- run: pnpm fetch | |
ci-cli: | |
needs: setup-dependencies | |
runs-on: ${{matrix.os}} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
node-version: [16, 18] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/[email protected] | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: 'pnpm' | |
- run: pnpm install | |
- run: cd packages/cli && pnpm test | |
ci-drill: | |
needs: setup-dependencies | |
runs-on: ${{matrix.os}} | |
timeout-minutes: 20 | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
node-version: [16, 18] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/[email protected] | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: 'pnpm' | |
- run: docker-compose up -d | |
- run: pnpm install | |
- run: sleep 10 | |
- run: cd packages/drill && pnpm test | |
ci-falcon: | |
needs: setup-dependencies | |
runs-on: ${{matrix.os}} | |
timeout-minutes: 20 | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
node-version: [16, 18] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/[email protected] | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: 'pnpm' | |
- run: docker-compose up -d | |
- run: pnpm install | |
- run: sleep 10 | |
- run: cd packages/falcon && pnpm test | |
ci-huston: | |
needs: setup-dependencies | |
runs-on: ${{matrix.os}} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
node-version: [16, 18] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/[email protected] | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: 'pnpm' | |
- run: pnpm install | |
- run: cd packages/huston && pnpm test | |
ci-rover: | |
needs: setup-dependencies | |
runs-on: ${{matrix.os}} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
node-version: [16, 18] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/[email protected] | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: 'pnpm' | |
- run: pnpm install | |
- run: cd packages/rover && pnpm test |