Skip to content

Merge pull request #132 from ForestGeoHack/update-packages #78

Merge pull request #132 from ForestGeoHack/update-packages

Merge pull request #132 from ForestGeoHack/update-packages #78

Workflow file for this run

name: Build and test Frontend
on:
pull_request:
paths:
- 'FrontEnd/**'
- '.github/**'
push:
branches:
- main
paths:
- 'FrontEnd/**'
- '.github/**'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node-version: [16.x]
steps:
- uses: actions/[email protected]
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: |
pwd
cd FrontEnd
npm install
- name: Run linter
run: |
cd FrontEnd
npm run lint
- name: Run type checker
run: |
cd FrontEnd
npm run tsc
- name: Run tests
run: |
cd FrontEnd
npm test -- --passWithNoTests
- name: Build FrontEnd
run: |
cd FrontEnd
npm run build
- name: Build storybook
run: |
cd FrontEnd
npm run build-storybook