-
Notifications
You must be signed in to change notification settings - Fork 7
73 lines (55 loc) · 1.86 KB
/
quality.yml
File metadata and controls
73 lines (55 loc) · 1.86 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
name: Quality
on:
pull_request:
paths:
- '**/java/**'
- 'web/siteplan/**'
- 'web/textviewer/**'
push:
tags:
- 'v**'
branches:
- 'release/**'
- 'main'
run-name: Qualtity - ${{github.event_name == 'push' && github.event.head_commit.message || github.event_name == 'pull_request' && github.event.pull_request.title || 'Unknow name'}}
jobs:
java-formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup Java
uses: eclipse-set/build/.github/actions/setup-java@main
- name: Get eclipse
run: mkdir ./tmp && wget -O ./tmp/eclipse.tar.gz https://archive.eclipse.org/technology/epp/downloads/release/2024-06/R/eclipse-java-2024-06-R-linux-gtk-x86_64.tar.gz
- name: Unzip eclipse
run: tar -xf ./tmp/eclipse.tar.gz -C ./tmp
- name: Test
run: ls -la $JAVA_HOME/bin
- name: Run eclipse formatter
run: ./tmp/eclipse/eclipse -noSplash -vm "$JAVA_HOME/bin/java" -data ./tmp/workspace -application org.eclipse.jdt.core.JavaCodeFormatter -config ./releng/eclipse/java-formatter.epf .
- name: Cleanup eclipse
run: rm -R ./tmp
- name: Print diffs
run: git --no-pager diff --exit-code
lint-siteplan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 20
- name: Install dependencies
run: cd web/siteplan && npm install
- name: Eslint
run: cd web/siteplan && npm run lint
lint-textviewer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 20
- name: Install dependencies
run: cd web/textviewer && npm install
- name: Eslint
run: cd web/textviewer && npm run lint