-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (32 loc) · 1022 Bytes
/
ci.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
name: Continuous Integration
on:
push:
branches:
- "*"
pull_request:
branches: [ main ]
jobs:
CLI:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Download mxlint binary
run: |
curl -L https://github.com/mxlint/mxlint-cli/releases/download/v3.0.0/mxlint-v3.0.0-linux-amd64 -o mxlint
chmod +x mxlint
- name: Download modelsource
run: |
curl -L https://github.com/mxlint/mxlint-cli/archive/refs/heads/main.zip -o modelsource.zip
unzip modelsource.zip
mv mxlint-cli-main/modelsource modelsource
rm modelsource.zip
rm -rf mxlint-cli-main
- name: Lint
run: ./mxlint lint --xunit-report report.xml --rules ./rules --modelsource ./modelsource
- name: Process xunit-report
uses: dorny/test-reporter@v1
if: success() || failure() # run this step even if previous step failed
with:
name: Lint Test Report
path: report.xml
reporter: java-junit