Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
# '0' as a string: the number 0 is falsy in expressions
fetch-depth: ${{ github.event_name == 'pull_request' && '0' || '1' }}
- uses: ./.github/actions/setup-mise
- run: mise run check
- if: github.event_name == 'pull_request' && github.repository == 'fedify-dev/fedify'
env:
PR_NUMBER: ${{ github.event.pull_request.number }}
BASE_SHA: ${{ github.event.pull_request.base.sha }}
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
run: >-
mise run --skip-deps check:changelog-pr-refs --
--pr "$PR_NUMBER" --base "$BASE_SHA" --head "$HEAD_SHA"

release-test:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,10 @@ deno run --allow-read --allow-write scripts/check_versions.ts ...$fix_args ...$s
description = "Ensure @fedify/fixture is only used in **/*.test.ts files"
run = "deno run --allow-read scripts/check_fixture_usage.ts"

[tasks."check:changelog-pr-refs"]
description = "Check that changelog entries added by a pull request reference it"
run = "deno run --allow-read --allow-run=git scripts/check_changelog_pr_refs.ts"

[tasks."check:workspace-protocol"]
description = "Check for invalid workspace: specifiers without version (*, ^, ~)"
run = "deno run --allow-read scripts/check_workspace_protocol.ts"
Expand Down
Loading
Loading