-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 977 Bytes
/
front.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
name: frontend-example
env:
DOCKER_BUILDKIT: 1
COMPOSE_DOCKER_CLI_BUILD: 1
on:
pull_request:
branches:
- main
- develop
- master
push:
branches:
- main
- develop
- master
jobs:
vite-vitest-and-linters:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
defaults:
run:
working-directory: ./frontend
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Vitest install
run: npm i
- name: Vitest build
run: npm run build
- name: Prettier
run: npm run prettier:fix
- name: Lint
run: npm run lint
- name: Lint-fix
run: npm run lint:fix
- name: Vitest
run: npm run test --no-watch