Skip to content

chore: update publish yml to comply with npm ACTION setup #149

chore: update publish yml to comply with npm ACTION setup

chore: update publish yml to comply with npm ACTION setup #149

Workflow file for this run

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 }}