Skip to content

Migrate CI from Travis to GitHub Actions (main branch) #2

Migrate CI from Travis to GitHub Actions (main branch)

Migrate CI from Travis to GitHub Actions (main branch) #2

name: Integration Tests
on:
push:
branches: ['3.x', main]
pull_request:
branches: ['3.x', main]
schedule:
# Daily run that fans out across every active branch via the matrix
# job below. GitHub only fires `schedule:` from the workflow file on
# the default branch (main); copies of this file on
# non-default branches keep the block for symmetry but it is dormant
# there.
- cron: '0 8 * * *'
workflow_dispatch:
jobs:
tests:
if: github.event_name != 'schedule'
uses: logstash-plugins/.ci/.github/workflows/integration-tests.yml@1.x
# Forward org/repo secrets (e.g. SLACK_BOT_TOKEN used by the reusable's
# failure-notification step). The reusable does not declare a
# workflow_call.secrets block, so `inherit` is required.
secrets: inherit
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/3.x' && github.ref != 'refs/heads/main' }}
with:
timeout-minutes: 60
elastic-stack-versions: '["8.current","9.current","9.next"]'
scheduled:
if: github.event_name == 'schedule'
strategy:
fail-fast: false
matrix:
branch: ['3.x', main]
uses: logstash-plugins/.ci/.github/workflows/integration-tests.yml@1.x
secrets: inherit
with:
ref: ${{ matrix.branch }}
timeout-minutes: 60
elastic-stack-versions: '["8.current","9.current","9.next"]'