-
-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (35 loc) · 951 Bytes
/
frontend.yaml
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
name: Frontend
on:
push:
branches: [ development ]
paths:
- 'frontend/**'
- '.github/workflows/frontend.yaml'
pull_request:
branches: [ development ]
paths:
- 'frontend/**'
- '.github/workflows/frontend.yaml'
workflow_dispatch:
jobs:
build:
name: Test and build frontend bundle
runs-on: ubuntu-latest
strategy:
matrix:
node: [ 16.x ]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node ${{ matrix.node }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
cache: 'yarn'
cache-dependency-path: 'frontend/yarn.lock'
- name: Install dependencies
run: yarn install --prefer-offline --frozen-lockfile --non-interactive
working-directory: ./frontend
#- name: Run tests
# run: yarn test
# working-directory: ./frontend