-
Notifications
You must be signed in to change notification settings - Fork 99
57 lines (48 loc) · 1.6 KB
/
frontend.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Frontend Testing
on:
push:
paths:
- hyperglass/ui/**
- .github/**
pull_request:
jobs:
frontend:
name: Frontend Tests
strategy:
fail-fast: false
matrix:
node-version: [20.x]
pnpm-version: [8]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
env:
working-directory: ./hyperglass/ui
steps:
- name: Git Checkout
uses: actions/checkout@v3
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install PNPM
uses: pnpm/action-setup@v3
with:
version: ${{ matrix.pnpm-version }}
- name: Install Dependencies
working-directory: ${{ env.working-directory }}
run: pnpm install
- name: Create empty hyperglass.json
working-directory: ${{ env.working-directory }}
run: echo '{}' > hyperglass.json
- name: Formatting
working-directory: ${{ env.working-directory }}
run: pnpm run format:check
- name: Lint
working-directory: ${{ env.working-directory }}
run: pnpm run lint
- name: Check Types
working-directory: ${{ env.working-directory }}
run: pnpm run typecheck
- name: Tests
working-directory: ${{ env.working-directory }}
run: pnpm run test