Minor tidying #123
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: Test | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| env: | |
| VITE_NEON_DB_URL: ${{ secrets.VITE_NEON_DB_URL }} | |
| VITE_NEON_DB_POOLER_URL: ${{ secrets.VITE_NEON_DB_POOLER_URL }} | |
| VITE_VERCEL_TOKEN: ${{ secrets.VITE_VERCEL_TOKEN }} | |
| VITE_CLERK_SECRET_KEY: ${{ secrets.VITE_CLERK_SECRET_KEY }} | |
| VITE_WSPROXY: ${{ vars.VITE_WSPROXY }} | |
| VITE_CLERK_USER: ${{ vars.VITE_CLERK_USER }} | |
| jobs: | |
| test-old: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # setup | |
| - name: Harden the runner (Audit all outbound calls) | |
| uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0 | |
| with: | |
| egress-policy: audit | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0 | |
| with: | |
| node-version: 19 | |
| - name: Install package dependencies | |
| run: npm install | |
| # goal | |
| - name: Run CLI-based tests in Node 19 | |
| run: touch src && npm run test:node | |
| test-current: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # setup | |
| - name: Harden the runner (Audit all outbound calls) | |
| uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0 | |
| with: | |
| egress-policy: audit | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - uses: oven-sh/setup-bun@4bc047ad259df6fc24a6c9b0f9a0cb08cf17fbe5 # v2.0.1 | |
| - uses: denoland/setup-deno@909cc5acb0fdd60627fb858598759246509fa755 # v2.0.2 | |
| - uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0 | |
| with: | |
| node-version: lts/* | |
| - name: Install package dependencies | |
| run: npm install | |
| # goal | |
| - name: Run all tests | |
| run: npm run test |