name: CI
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
format:
uses: ./.github/workflows/on-workflow-call-format.yml
secrets: inherit
lint:
uses: ./.github/workflows/on-workflow-call-lint.yml
secrets: inherit
build:
uses: ./.github/workflows/on-workflow-call-build.yml
secrets: inherit
release:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
needs: [format, build, lint]
uses: ./.github/workflows/on-workflow-call-release.yml
secrets: inherit