2023-06-29 14:18:30 +03:00
|
|
|
name: Vitest
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ main ]
|
2023-07-02 15:37:15 +03:00
|
|
|
paths:
|
|
|
|
- 'frontend/**'
|
2023-06-29 14:18:30 +03:00
|
|
|
pull_request:
|
|
|
|
branches: [ main ]
|
2023-07-02 15:37:15 +03:00
|
|
|
paths:
|
|
|
|
- 'frontend/**'
|
2023-06-29 14:18:30 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
working-directory: ./frontend
|
2023-07-02 03:19:30 +03:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
node-version: [18]
|
2023-06-29 14:18:30 +03:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
2023-07-02 03:19:30 +03:00
|
|
|
node-version: ${{ matrix.node-version }}
|
2023-06-29 14:18:30 +03:00
|
|
|
cache: 'yarn'
|
2023-06-29 14:31:19 +03:00
|
|
|
cache-dependency-path: frontend/yarn.lock
|
|
|
|
- run: yarn
|
2023-07-02 03:19:30 +03:00
|
|
|
- run: yarn run test-unit
|