Fix wording #164
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: [dev, main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| linux: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: ["18", "20"] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Set up Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Install ffmpeg | |
| uses: Iamshankhadeep/[email protected] | |
| with: | |
| version: "4.4" | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Security audit | |
| run: npm audit --audit-level=high | |
| - name: Set development VITALLENS_FILE_ENDPOINT for non-main branches | |
| if: github.ref != 'refs/heads/main' | |
| run: echo "VITALLENS_FILE_ENDPOINT=https://api.example.com/vitallens-dev/file" >> $GITHUB_ENV | |
| - name: Set development VITALLENS_STREAM_ENDPOINT for non-main branches | |
| if: github.ref != 'refs/heads/main' | |
| run: echo "VITALLENS_STREAM_ENDPOINT=https://api.example.com/vitallens-dev/stream" >> $GITHUB_ENV | |
| - name: Lint code | |
| run: npm run lint | |
| - name: Test with Jest | |
| env: | |
| VITALLENS_DEV_API_KEY: ${{ secrets.VITALLENS_DEV_API_KEY }} | |
| run: npm test | |
| windows: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: "18.16.1" | |
| - name: Install ffmpeg | |
| uses: Iamshankhadeep/[email protected] | |
| with: | |
| version: "4.4" | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Security audit | |
| run: npm audit --audit-level=high | |
| - name: Set development VITALLENS_FILE_ENDPOINT for non-main branches | |
| if: github.ref != 'refs/heads/main' | |
| run: echo "VITALLENS_FILE_ENDPOINT=https://api.example.com/vitallens-dev/file" | Out-File -FilePath $env:GITHUB_ENV -Append | |
| - name: Set development VITALLENS_STREAM_ENDPOINT for non-main branches | |
| if: github.ref != 'refs/heads/main' | |
| run: echo "VITALLENS_STREAM_ENDPOINT=https://api.example.com/vitallens-dev/stream" | Out-File -FilePath $env:GITHUB_ENV -Append | |
| - name: Lint code | |
| run: npm run lint | |
| - name: Test with Jest | |
| env: | |
| VITALLENS_DEV_API_KEY: ${{ secrets.VITALLENS_DEV_API_KEY }} | |
| run: npm test |