-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (32 loc) · 1.01 KB
/
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
40
name: Continuous Integration
on:
push:
branches:
- "*"
pull_request:
branches: [ main ]
jobs:
Rules:
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 XML output
run: ./mxlint lint --xunit-report report.xml --rules ./rules --modelsource ./modelsource
- name: Lint JSON output
run: ./mxlint lint --json-file report.json --rules ./rules --modelsource ./modelsource
- name: Upload report
uses: actions/upload-artifact@v4
with:
name: report
path: report.*