Skip to content

Tests added

Tests added #67

Workflow file for this run

name: Build and test
on: pull_request
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Node.js 16.x
uses: actions/setup-node@v1
with:
node-version: 16.x
registry-url: https://registry.npmjs.org/
- name: Install lib dependencies
run: npm install
- name: Serve test server
run: npx nx serve-test halstack-react-hal
- name: Test lib
run: npx nx test halstack-react-hal
- name: Stop json-server
run: kill $(lsof -t -i:3000)
- name: Build library
run: npx nx build halstack-react-hal
- name: Copy README
run: npx nx run copy