2022-08-26 09:25:31 +02:00
|
|
|
name: PR -> Frontend Build & Test
|
2021-01-12 11:44:38 +01:00
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
2022-08-26 09:25:31 +02:00
|
|
|
paths:
|
|
|
|
- frontend/**
|
2021-01-12 11:44:38 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
2022-08-26 09:25:31 +02:00
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
working-directory: frontend
|
2021-01-12 11:44:38 +01:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-05-05 22:18:35 +02:00
|
|
|
node-version: [14.x]
|
2021-01-12 11:44:38 +01:00
|
|
|
steps:
|
2022-03-25 10:18:06 +01:00
|
|
|
- uses: actions/checkout@v3
|
2021-01-12 11:44:38 +01:00
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
2022-03-25 09:50:01 +01:00
|
|
|
uses: actions/setup-node@v3
|
2021-01-12 11:44:38 +01:00
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node-version }}
|
2022-08-26 09:25:31 +02:00
|
|
|
- run: yarn --frozen-lockfile
|
2021-04-07 09:04:48 +02:00
|
|
|
- run: yarn run test
|
2022-02-18 09:51:10 +01:00
|
|
|
- run: yarn run fmt:check
|
2022-09-30 13:01:32 +02:00
|
|
|
- run: yarn run ts:check # TODO: optimize
|