chore: update publish yml to comply with npm ACTION setup #149
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: SDK Integration Tests | |
| on: | |
| pull_request: | |
| branches: [main] | |
| push: | |
| branches: [main] | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20.x" | |
| cache: "yarn" | |
| - name: Install dependencies | |
| run: yarn install --frozen-lockfile | |
| - name: Build package | |
| run: yarn build | |
| - name: Cache build | |
| uses: actions/cache/save@v4 | |
| with: | |
| path: | | |
| node_modules | |
| dist | |
| key: build-${{ github.sha }} | |
| test: | |
| name: Test (${{ matrix.test }}) | |
| runs-on: ubuntu-latest | |
| needs: build | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| test: | |
| - audio | |
| - classification | |
| - validate | |
| - vision | |
| - web:scraper | |
| - web:search | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20.x" | |
| cache: "yarn" | |
| - name: Restore build cache | |
| uses: actions/cache/restore@v4 | |
| with: | |
| path: | | |
| node_modules | |
| dist | |
| key: build-${{ github.sha }} | |
| - name: Run ${{ matrix.test }} tests | |
| env: | |
| JIGSAWSTACK_API_KEY: ${{ secrets.JIGSAWSTACK_API_KEY }} | |
| run: yarn test:${{ matrix.test }} |