2022-12-25 05:39:45 +03:00
|
|
|
name: Frontend Test
|
2022-08-24 16:12:08 +03:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
- "release/v*.*.*"
|
|
|
|
pull_request:
|
|
|
|
branches: [main]
|
2022-12-25 05:39:45 +03:00
|
|
|
paths:
|
|
|
|
- "web/**"
|
2022-08-24 16:12:08 +03:00
|
|
|
|
|
|
|
jobs:
|
2022-08-31 14:27:17 +03:00
|
|
|
eslint-checks:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-node@v3
|
|
|
|
with:
|
2022-11-19 09:51:28 +03:00
|
|
|
node-version: "18"
|
2022-08-31 14:27:17 +03:00
|
|
|
cache: yarn
|
|
|
|
cache-dependency-path: "web/yarn.lock"
|
|
|
|
- run: yarn
|
|
|
|
working-directory: web
|
|
|
|
- name: Run eslint check
|
|
|
|
run: yarn lint
|
|
|
|
working-directory: web
|
|
|
|
|
2022-10-01 17:57:32 +03:00
|
|
|
jest-tests:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-node@v3
|
|
|
|
with:
|
2022-11-19 09:51:28 +03:00
|
|
|
node-version: "18"
|
2022-10-01 17:57:32 +03:00
|
|
|
cache: yarn
|
|
|
|
cache-dependency-path: "web/yarn.lock"
|
|
|
|
- run: yarn
|
|
|
|
working-directory: web
|
|
|
|
- name: Run jest
|
|
|
|
run: yarn test
|
|
|
|
working-directory: web
|
|
|
|
|
2022-08-31 15:21:56 +03:00
|
|
|
frontend-build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-node@v3
|
|
|
|
with:
|
2022-11-19 09:51:28 +03:00
|
|
|
node-version: "18"
|
2022-08-31 15:21:56 +03:00
|
|
|
cache: yarn
|
|
|
|
cache-dependency-path: "web/yarn.lock"
|
|
|
|
- run: yarn
|
|
|
|
working-directory: web
|
|
|
|
- name: Run frontend build
|
|
|
|
run: yarn build
|
|
|
|
working-directory: web
|