name: ci
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
- release-*
permissions:
contents: read
id-token: write
env:
CI: "true"
# Spend CI time only on latest ref
concurrency:
# Run for each PR or branch, we group by workflow file and reference (e.g. `main` or
# `refs/pull/<pr_number>/merge` or `refs/tags/<tag_name>`). See the value of [github.ref].
#
# [github.ref]: https://docs.github.com/en/actions/learn-github-actions/contexts#github-context
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true
jobs:
common:
uses: ./.github/workflows/common.yaml
check:
uses: ./.github/workflows/check.yaml
test:
uses: ./.github/workflows/test.yaml
# Pass Codecov secret
secrets: inherit
library:
uses: ./.github/workflows/library.yaml