ci: github actions #3
Workflow file for this run
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: Integration Tests | |
| on: | |
| push: | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| integration-tests: | |
| name: Integration Test - ES ${{ matrix.elastic-stack-version }} ${{ matrix.snapshot && '(Snapshot)' || '' }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| elastic-stack-version: | |
| - "7.current" | |
| - "8.previous" | |
| - "8.current" | |
| - "9.current" | |
| snapshot: [false, true] | |
| include: | |
| - elastic-stack-version: "main" | |
| snapshot: true | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Setup test environment | |
| id: setup | |
| uses: logstash-plugins/.ci/setup@feature/github-actions | |
| with: | |
| elastic-stack-version: ${{ matrix.elastic-stack-version }} | |
| snapshot: ${{ matrix.snapshot }} | |
| integration: true | |
| - name: Run integration tests | |
| if: steps.setup.outputs.skip != 'true' | |
| run: | | |
| bash .ci/docker-run.sh | |
| # NOTE: no cleanup needed when running on ephemeral runners |