-
Notifications
You must be signed in to change notification settings - Fork 15
46 lines (43 loc) · 1.19 KB
/
push-test.yml
File metadata and controls
46 lines (43 loc) · 1.19 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
name: Build, Test & Lint
on: [push, pull_request]
permissions:
contents: read
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: '1.26'
- name: Build
run: make build
- name: Test
run: make test
- name: Setup mxbuild
run: ./bin/mxcli setup mxbuild --version 11.8.0
- name: Integration tests
run: make test-integration
timeout-minutes: 30
- name: Lint Go
run: make lint-go
- name: Vulnerability scan
run: |
go install golang.org/x/vuln/cmd/govulncheck@latest
govulncheck ./...
- name: Check MDL example scripts
run: |
FAILED=0
for f in mdl-examples/doctype-tests/*.mdl; do
[[ "$f" == *.test.mdl ]] && continue
NAME=$(basename "$f")
echo "::group::$NAME"
if ./bin/mxcli check "$f"; then
echo "PASS: $NAME"
else
echo "::error file=$f::Syntax check failed: $NAME"
FAILED=1
fi
echo "::endgroup::"
done
exit $FAILED