build(deps): bump elastic/docs-builder from 80c3e95a9f022c4926792758e902bac95160d6e5 to 4fd8e89dd8147ac5301c55a24f9dfce0bedb06cf in the github-actions group #880
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: test | |
| on: | |
| pull_request: | |
| paths-ignore: | |
| - "**/*.asciidoc" | |
| - "**/*.md" | |
| - "**/*.png" | |
| push: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - "**/*.asciidoc" | |
| - "**/*.md" | |
| - "**/*.png" | |
| 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: | |
| test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| platform: | |
| - "ubuntu-latest" | |
| - "macos-latest" | |
| runs-on: ${{ matrix.platform }} | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
| - name: Bootstrap Action Workspace | |
| uses: ./.github/actions/bootstrap | |
| - name: Test | |
| run: make test junitfile="${{ matrix.platform }}-junit-report.xml" | |
| - uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4 | |
| if: success() || failure() | |
| with: | |
| name: test-results-${{ matrix.platform }} | |
| path: '*-junit-report.xml' | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
| - name: Bootstrap Action Workspace | |
| uses: ./.github/actions/bootstrap | |
| with: | |
| goreleaser: 'true' | |
| - name: Build | |
| run: make dist | |
| - uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4 | |
| if: always() | |
| with: | |
| name: snapshots | |
| path: "dist/*.*" | |
| retention-days: 5 | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
| - name: Bootstrap Action Workspace | |
| uses: ./.github/actions/bootstrap | |
| - run: make lint-prep | |
| - run: make lint | |
| - run: go vet | |
| notice: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
| - name: Bootstrap Action Workspace | |
| uses: ./.github/actions/bootstrap | |
| - name: notice | |
| run: make check-notice | |
| # The very last job to report whether the Workflow passed. | |
| # This will act as the Branch Protection gatekeeper | |
| ci: | |
| if: always() | |
| needs: | |
| - build | |
| - lint | |
| - notice | |
| - test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - id: check | |
| uses: elastic/oblt-actions/check-dependent-jobs@31e93d1dfb82adc106fc7820f505db1afefe43b1 # v1 | |
| with: | |
| jobs: ${{ toJSON(needs) }} | |
| - run: ${{ steps.check.outputs.is-success }} |