Lint & test "Lint PR title" action #126
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint & test "Lint PR title" action | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- .github/workflows/test-lint-pr-title.yml | |
- actions/lint-pr-title/** | |
pull_request: | |
paths: | |
- .github/workflows/test-lint-pr-title.yml | |
- actions/lint-pr-title/** | |
types: | |
- edited | |
- opened | |
- ready_for_review | |
- synchronize | |
merge_group: | |
jobs: | |
build-lint-pr-title: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: actions/lint-pr-title | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Install bun package manager | |
uses: oven-sh/setup-bun@4bc047ad259df6fc24a6c9b0f9a0cb08cf17fbe5 # v2.0.1 | |
with: | |
bun-version-file: "actions/lint-pr-title/package.json" | |
- name: Install lint-pr-title dependencies | |
run: bun install --frozen-lockfile | |
- name: Lint | |
run: bun lint | |
- name: Test | |
run: bun test |