Skip to content

intentionally introduce a broken unit test #27

intentionally introduce a broken unit test

intentionally introduce a broken unit test #27

Workflow file for this run

name: CI

Check failure on line 1 in .github/workflows/main.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yaml

Invalid workflow file

(Line: 32, Col: 9): Unexpected symbol: 'github'. Located at position 49 within expression: failure() && (github.ref == 'refs/heads/master' github.ref == 'refs/heads/testing-oidc-trusted-publishing')
permissions:
contents: read
issues: write
on:
push:
branches: ['master', 'next']
pull_request:
branches: ['*']
jobs:
build:
uses: ./.github/workflows/build.yaml
check:
needs: build
uses: ./.github/workflows/check.yaml
release:
# TODO: remove 'testing-oidc-trusted-publishing' branch once trusted publishing is stable
if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/testing-oidc-trusted-publishing' || github.ref == 'refs/heads/next')
needs: [build, check]
permissions:
contents: write
id-token: write
actions: read
uses: ./.github/workflows/release.yaml
notify-failure:
# TODO remove 'testing-oidc-trusted-publishing' github issue reporting is stable
if: failure() && (github.ref == 'refs/heads/master' github.ref == 'refs/heads/testing-oidc-trusted-publishing')
needs: [build, check, release]
permissions:
contents: read
issues: write
uses: ./.github/workflows/failure-notification.yaml
with:
workflow_name: "Main CI Pipeline"
job_name: ${{ needs.build.result == 'failure' && 'build' || needs.check.result == 'failure' && 'check' || needs.release.result == 'failure' && 'release' || 'unknown' }}
failure_reason: "One or more jobs in the main CI pipeline failed. Check the workflow run for detailed error information."