#706 add homebrew path on older macOS versions #174
This file contains 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: Tests | |
on: | |
push: | |
paths: | |
- "**/*.go" | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go-version: [ '1.18', '1.19', '1.20', '1.21' ] | |
env: | |
MUREX_BUILD_FLAGS: --no-colour | |
MUREX_TEST_NO_EXEC_DEPS: true | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Go ${{ matrix.go-version }} | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Display Go version | |
run: | | |
go version | |
- name: Enable all optional builtins | |
run: | | |
rm -vf builtins/imports_build/* | |
cp -vf builtins/imports_src/* builtins/imports_build/ | |
- name: Go Test | |
run: | | |
go test ./... -count 1 -race | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
#token: ${{ secrets.CODECOV_TOKEN }} | |
# files: ./coverage1.xml,./coverage2.xml # optional | |
# flags: unittests # optional | |
#name: codecov-umbrella # optional | |
fail_ci_if_error: false # optional (default = false) | |
verbose: true # optional (default = false) | |
- name: Build native target | |
run: | | |
go build -v github.com/lmorg/murex | |
- name: Behavioural tests | |
run: | | |
./murex -c 'g: behavioural/*.mx -> foreach: f { source $f }; test: run *' | |
- name: Build cross-compiled targets | |
run: | | |
./murex ./test/build_all_platforms.mx --no-colour | |
- name: Build web assembly target | |
run: | | |
GOOS=js GOARCH=wasm go build -o murex.wasm . |