Merge pull request #79 from tloncorp/po/add-ci-test-build-action

Add ci workflow
This commit is contained in:
Patrick O'Sullivan 2023-02-08 19:52:47 -06:00 committed by GitHub
commit ed6fe1153f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

25
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: CI (Test and Build)
on: pull_request
jobs:
test-build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3.0.0
- name: Setup Node.js environment
uses: actions/setup-node@v3.1.1
with:
node-version-file: ./ui/.nvmrc
- name: Install Dependencies
run: npm ci
working-directory: ./ui
- name: Run Tests
run: npm run test
working-directory: ./ui
- name: Build
run: npm run build
working-directory: ./ui