Migrate CI from Travis to GitHub Actions (main branch) #3
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: Secure 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/secure-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 | |
| scheduled: | |
| if: github.event_name == 'schedule' | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| branch: ['3.x', main] | |
| uses: logstash-plugins/.ci/.github/workflows/secure-integration-tests.yml@1.x | |
| secrets: inherit | |
| with: | |
| ref: ${{ matrix.branch }} | |
| timeout-minutes: 60 |