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/**
|
2024-09-03 12:06:58 +02:00
|
|
|
- .github/workflows/**frontend**
|
2021-01-12 11:44:38 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
2024-05-28 09:08:23 +02:00
|
|
|
name: build
|
2022-08-26 09:25:31 +02:00
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
working-directory: frontend
|
2024-05-31 16:28:09 +02:00
|
|
|
|
2021-01-12 11:44:38 +01:00
|
|
|
steps:
|
2023-10-05 10:19:57 +02:00
|
|
|
- uses: actions/checkout@v4
|
2024-05-31 16:28:09 +02:00
|
|
|
- name: Use Node.js 20.x
|
2024-01-17 08:56:41 +01:00
|
|
|
uses: actions/setup-node@v4
|
2023-02-03 11:28:06 +01:00
|
|
|
with:
|
2024-05-31 16:28:09 +02:00
|
|
|
node-version: 20.x
|
2024-06-27 12:52:43 +02:00
|
|
|
- name: Enable corepack
|
|
|
|
run: corepack enable
|
|
|
|
- run: yarn --immutable
|
2024-03-12 13:29:52 +01:00
|
|
|
- run: yarn run lint:material:icons
|
2023-02-03 11:28:06 +01:00
|
|
|
- run: yarn run lint:check
|
2024-01-10 10:27:30 +01:00
|
|
|
- run: yarn run test
|
2023-02-03 11:28:06 +01:00
|
|
|
- run: yarn run ts:check # TODO: optimize
|