-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtest_main_developer_branches_pull.yml
More file actions
48 lines (40 loc) · 1.14 KB
/
test_main_developer_branches_pull.yml
File metadata and controls
48 lines (40 loc) · 1.14 KB
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
name: Webapp-test on main and developer branch
on:
pull_request:
branches:
- main
- developer
paths:
- 'client/**'
workflow_dispatch:
jobs:
test-web-application:
name: 'Run unit tests for web-application'
runs-on: ubuntu-latest
env:
VITE_POSTGREST_URL: ${{ secrets.POSTGREST_URL }}
VITE_UPLOAD_URL: ${{ secrets.UPLOAD_URL }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Dependencies
run: npm install
working-directory: ./client
- name: Install Playwright Browsers
run: npx playwright install
working-directory: ./client
- name: Run Tests
run: npm run test
working-directory: ./client
lint-web-application:
name: 'Lint code for web-application'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Dependencies
run: npm install
working-directory: ./client
- name: Check for linting issues
run: npm run lint
working-directory: ./client