1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

41 lines
837 B
YAML
Raw Normal View History

2021-01-01 14:23:15 -07:00
name: Frontend Testing
2021-12-06 16:44:46 -07:00
on:
- push
- pull_request
2021-01-01 14:23:15 -07:00
jobs:
frontend:
2021-01-03 10:31:52 -07:00
name: Frontend Tests
2021-01-01 14:23:15 -07:00
strategy:
fail-fast: false
matrix:
node-version: [14.x]
2021-12-06 16:44:46 -07:00
os: [ubuntu-latest]
2021-01-03 10:41:13 -07:00
runs-on: ${{ matrix.os }}
2021-01-01 14:28:29 -07:00
env:
working-directory: ./hyperglass/ui
2021-01-01 14:23:15 -07:00
steps:
- name: Git Checkout
uses: actions/checkout@v2
- name: Install Node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install Dependencies
2021-01-01 14:28:29 -07:00
working-directory: ${{ env.working-directory }}
2021-01-01 14:23:15 -07:00
run: yarn install
2021-12-06 16:44:46 -07:00
- name: Formatting (Prettier)
run: yarn format:check
2021-01-03 23:56:47 -07:00
2021-12-06 16:44:46 -07:00
- name: Lint (ESLint)
run: yarn lint
2021-01-03 23:56:47 -07:00
2021-12-06 16:44:46 -07:00
- name: Types (TypeScript)
run: yarn typecheck
- name: Tests (Jest)
run: yarn test