Skip to content

Improve sdk

Improve sdk #4

Workflow file for this run

name: Build workflow
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 14
- name: Cache Node.js modules
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-
- name: Verify Node.js version
run: node --version
- name: Audit dependencies
run: npm audit
- name: Install dependencies
run: npm ci
- name: Build project
run: npm run build --if-present
- name: Run tests
run: npm test
env:
PROJECT_ID: ${{ secrets.PROJECT_ID }}
API_SECRET: ${{ secrets.API_SECRET }}