Implement durable-streams with Node.js runtime #178
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: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| runs-on: "${{ github.repository_owner == 'iterate' && 'depot-ubuntu-24.04-4' || 'ubuntu-24.04' }}" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Install Doppler CLI | |
| uses: dopplerhq/cli-action@v3 | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Run tests | |
| run: doppler run -- bun run test | |
| env: | |
| DOPPLER_TOKEN: ${{ secrets.DOPPLER_TOKEN }} | |
| TEST_ARTIFACTS_DIR: ${{ runner.temp }}/test-artifacts | |
| - name: Archive test artifacts on failure | |
| if: failure() | |
| run: | | |
| if [ -d "${{ runner.temp }}/test-artifacts" ] && [ "$(ls -A ${{ runner.temp }}/test-artifacts)" ]; then | |
| tar -czvf test-artifacts.tar.gz -C "${{ runner.temp }}/test-artifacts" . | |
| else | |
| echo "No test artifacts to archive" | |
| fi | |
| - name: Upload test artifacts | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-failure-artifacts | |
| path: test-artifacts.tar.gz | |
| if-no-files-found: ignore | |
| retention-days: 7 |