Skip to content

x-pack/auditbeat: GH action for macOS 13/14/15 unit tests #38

x-pack/auditbeat: GH action for macOS 13/14/15 unit tests

x-pack/auditbeat: GH action for macOS 13/14/15 unit tests #38

name: auditbeat-macos-unit-tests
on:
pull_request:
push:
branches:
- main
paths:
- auditbeat
- .github/workflows/auditbeat-macos-unit-tests.yml
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:
unit-tests-push:
name: Unit tests ${{ matrix.os }}
if: github.event_name == 'push'
strategy:
fail-fast: false
max-parallel: 10
matrix:
os: [macos-13, macos-14]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: ./.github/workflows/actions/unit-test-composite-action
with:
beat: 'auditbeat'
unit-tests-pr:
name: Unit tests macOS 15
if: github.event_name == 'pull_request'
runs-on: [ macos-15 ]
steps:
- uses: actions/checkout@v4
- uses: ./.github/workflows/actions/unit-test-composite-action
with:
beat: 'auditbeat'