Skip to content

Enable macOS unit tests for macOS 15 #8

Enable macOS unit tests for macOS 15

Enable macOS unit tests for macOS 15 #8

name: macos-unit-tests
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
- 8.*
- 9.*
permissions:
contents: read
## Concurrency only allowed in the main branch.
## So old builds running for old commits within the same Pull Request are cancelled
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
setup:
name: Setup env
runs-on: ubuntu-latest
steps:
- name: Extract BEAT_VERSION from version.go
run: |
if [[ -z "${BEAT_VERSION-""}" ]]; then
BEAT_VERSION=$(grep -oE '[0-9]+\.[0-9]+\.[0-9]+(\-[a-zA-Z]+[0-9]+)?' ./version/version.go)
echo "BEAT_VERSION=$BEAT_VERSION" >> $GITHUB_ENV
fi
unit-tests-push:
name: Unit tests ${{ matrix.os }}
# if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
strategy:
fail-fast: false
matrix:
os: [ macos-13, macos-14 ]
runs-on: ${{ matrix.os }}
timeout-minutes: 60
steps:
- uses: actions/checkout@v5
- name: Install make
run: |
brew install make
export PATH="/usr/local/opt/make/libexec/gnubin:$PATH"
shell: bash
- name: Beat version
run: |
make get-version
shell: bash
- name: Install mage
run: make mage
shell: bash
- run: |
.buildkite/scripts/steps/unit-tests.sh
shell: bash
unit-tests-pr:
name: Unit tests macos-15
# if: github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
runs-on: [ macos-15 ]
timeout-minutes: 60
steps:
- uses: actions/checkout@v5
- run: |
.buildkite/scripts/steps/unit-tests.sh
shell: bash