Bump GitHub Actions to v5 to resolve Node.js 20 deprecation #11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build, Test & Lint | |
| on: [push, pull_request] | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.26' | |
| - name: Build | |
| run: make build | |
| - name: Test | |
| run: make test | |
| - name: Lint Go | |
| run: make lint-go | |
| - 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 |