Release 0.7.5 security updates #230
Workflow file for this run
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] | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| environment: test | |
| strategy: | |
| matrix: | |
| node-version: [20.x] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: "npm" | |
| - name: Install dependencies | |
| run: npm run safe-install | |
| - name: Type check | |
| run: npx tsc --noEmit | |
| - name: Build package | |
| run: npm run build | |
| - name: Install example dependencies | |
| run: | | |
| cd examples && npm install | |
| cd cjs && npm install | |
| cd ../ts-cjs && npm install | |
| - name: Lint | |
| run: npm run lint | |
| - name: Run tests | |
| run: npm test | |
| env: | |
| FREEPLAY_API_URL: ${{ secrets.FREEPLAY_API_URL }} | |
| FREEPLAY_PROJECT_ID: ${{ secrets.FREEPLAY_PROJECT_ID }} | |
| EXAMPLES_PROJECT_ID: ${{ secrets.EXAMPLES_PROJECT_ID }} | |
| FREEPLAY_API_KEY: ${{ secrets.FREEPLAY_API_KEY }} | |
| OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
| ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} | |
| GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} |