landscape/.github/workflows/ci.yml
2023-02-08 11:44:48 -06:00

26 lines
549 B
YAML

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