mirror of
https://github.com/changesets/action
synced 2026-10-26 16:39:56 +08:00
* Bump zizmorcore/zizmor-action Bumps the github-actions group with 1 update: [zizmorcore/zizmor-action](https://github.com/zizmorcore/zizmor-action). Updates `zizmorcore/zizmor-action` from 0.6.2 to 0.6.4 - [Release notes](https://github.com/zizmorcore/zizmor-action/releases) - [Commits](https://github.com/zizmorcore/zizmor-action/compare/3dc1ecc9bcb9e94e9b2c709687979e1298497054...cc914d7f3750a2d13d75c7f184a1060aa0e9d482) --- updated-dependencies: - dependency-name: zizmorcore/zizmor-action dependency-version: 0.6.4 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com> * Fix zizmor lints --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: bluwy <bjornlu.dev@gmail.com>
80 lines
1.9 KiB
YAML
80 lines
1.9 KiB
YAML
name: CI
|
|
|
|
on:
|
|
pull_request:
|
|
# merge queue is required so all commits on target branches trigger this workflow
|
|
# despite lack of the push event trigger here
|
|
merge_group:
|
|
branches:
|
|
- main
|
|
- next
|
|
# merge group rulesets don't allow wildcards so in settings each maintenance branch needs to be added separately
|
|
- "maintenance/v*" # branch rulesets don't support v[0-9]+
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.sha }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
lint-workflows:
|
|
name: Lint workflows
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
actions: read # only required in private repos
|
|
security-events: write # allow writing security events
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Run zizmor
|
|
uses: zizmorcore/zizmor-action@cc914d7f3750a2d13d75c7f184a1060aa0e9d482 # v0.6.4
|
|
with:
|
|
persona: pedantic
|
|
annotations: true
|
|
advanced-security: false
|
|
|
|
test:
|
|
name: Test
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 20
|
|
steps:
|
|
- uses: $/.github/actions/ci-setup
|
|
|
|
- name: Test
|
|
run: pnpm test
|
|
|
|
typecheck:
|
|
name: Typecheck
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 20
|
|
steps:
|
|
- uses: $/.github/actions/ci-setup
|
|
|
|
- name: Typecheck
|
|
run: pnpm typecheck
|
|
|
|
lint:
|
|
name: Lint
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 20
|
|
steps:
|
|
- uses: $/.github/actions/ci-setup
|
|
|
|
- name: Format
|
|
run: pnpm format
|
|
|
|
ci-ok:
|
|
name: CI OK
|
|
runs-on: ubuntu-latest
|
|
if: always()
|
|
needs: [lint-workflows, test, typecheck, lint]
|
|
steps:
|
|
- name: Exit with error if some jobs are not successful
|
|
run: exit 1
|
|
if: ${{ always() && (contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')) }}
|