This repository has been archived by the owner on Feb 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (62 loc) · 1.69 KB
/
frontend.yml
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: frontend-tests
run-name: frontend-tests
on: [push]
jobs:
Frontend-tests:
runs-on: self-hosted
environment: vue tests
strategy:
max-parallel: 4
steps:
- uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: latest
- name: Empty EchoFetch directory
run: |
rm -rf EchoFetch
working-directory: ./frontend/src/api
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Setup EchoFetch
run: |
npm install
npm run build
working-directory: ./frontend/src/api/EchoFetch
- name: Install Dependencies
run: |
npm install --force
working-directory: ./frontend
- name: Create env file
run: |
echo "${{ vars.ENV }}" > ./.env.local
working-directory: ./frontend
- name: Run Tests
run: |
npm run test:unit
working-directory: ./frontend
Frontend-linter:
runs-on: self-hosted
environment: vue tests
strategy:
max-parallel: 4
steps:
- uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: latest
- name: Empty EchoFetch directory
run: |
rm -rf EchoFetch
working-directory: ./frontend/src/api
- name: Install Dependencies
run: |
npm install --force
npm i -D @vue/cli-plugin-eslint @vue/eslint-config-typescript --force
working-directory: ./frontend
- name: Run Linter
run: |
npm run lint
working-directory: ./frontend