Repository navigation
82 lines (79 loc) · 2.11 KB
/
Copy pathcomponent.yml
File metadata and controls
82 lines (79 loc) · 2.11 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: Component Tests
on:
push:
branches:
- master
- release
pull_request:
branches:
- master
- release
schedule:
- cron: '0 0 * * *' #end of every day
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 24
cache: 'npm'
- name: Set up JDK 21
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 21
cache: gradle
- name: Cache eslint
uses: actions/cache@v5
with:
path: |
./.eslintcache
key: eslint-${{ hashFiles('package-lock.json', 'eslint.config.*') }}
restore-keys: |
eslint-
- name: Cache stylelint
uses: actions/cache@v5
with:
path: |
./.stylelintcache
key: stylelint-${{ hashFiles('package-lock.json', 'stylelint.config.*') }}
restore-keys: |
stylelint-
- name: Run Backend Linting
run: ./gradlew lint --continue
- name: Install Frontend Dependencies
run: npm ci
- name: Run Lint Checks
run: npm run lint
component-testing:
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 24
cache: 'npm'
- name: Set up JDK 21
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 21
cache: gradle
- name: Update Property File
run: mv src/test/resources/test.ci-ubuntu-latest.properties src/test/resources/test.properties
- name: Run Backend Tests
run: |
./gradlew createConfigs
./gradlew jacocoTestReport
- name: Install Frontend Dependencies
run: npm ci
- name: Run Frontend Tests
run: npm run coverage
- name: Upload to Codecov
uses: codecov/codecov-action@v3