Skip to content

feat(client): next version initial commit (#36) #3

feat(client): next version initial commit (#36)

feat(client): next version initial commit (#36) #3

Workflow file for this run

name: Build and Test
on:
# manual trigger
workflow_dispatch:
# reuse workflow run
workflow_call:
# on pull request
pull_request:
# on push to master branch
push:
branches:
- 'master'
- 'next'
jobs:
build-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- name: Cache
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-package-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-package-
- name: Install dependencies
run: npm i
- name: Run tests
run: npm run test
env:
JF_API_KEY: ${{ secrets.TEST_USER_API_KEY }}
- name: Build package
run: npm run build