Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(mise.toml): include node_modules/.bin in path #877

Closed
wants to merge 1 commit into from
Closed
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
10 changes: 5 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,18 +102,18 @@ jobs:
id: commitlint-push-initial
# commit hash will be 000... if it doesn't exist
if: github.event_name == 'push' && github.event.before == '0000000000000000000000000000000000000000'
run: bun run commitlint --verbose --to ${{ github.event.after }}
run: commitlint --verbose --to ${{ github.event.after }}

- name: commitlint (push)
id: commitlint-push
if: github.event_name == 'push' && steps.commitlint-push-initial.outcome == 'skipped'
run: bun run commitlint --verbose --from ${{ github.event.before }} --to ${{ github.event.after }}
run: commitlint --verbose --from ${{ github.event.before }} --to ${{ github.event.after }}

- name: commitlint (pull_request)
id: commitlint-pr
if: github.event_name == 'pull_request'
run: |
bun run commitlint --verbose --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }}
commitlint --verbose --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }}

- name: commitlint (pull request title)
# continue even if the previous step fails
Expand All @@ -123,11 +123,11 @@ jobs:
# ref: https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
env:
PR_TITLE: ${{ github.event.pull_request.title }}
run: echo "${PR_TITLE}" | bun run commitlint --verbose
run: echo "${PR_TITLE}" | commitlint --verbose

- name: commitlint (last commit)
if: steps.commitlint-push-initial.outcome == 'skipped' && steps.commitlint-push.outcome == 'skipped' && steps.commitlint-pr.outcome == 'skipped'
run: bun run commitlint --verbose --from ${{ github.sha }}~1 --to ${{ github.sha }}
run: commitlint --verbose --from ${{ github.sha }}~1 --to ${{ github.sha }}

actions-timeline:
needs:
Expand Down
17 changes: 10 additions & 7 deletions mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,16 @@ unix_default_inline_shell_args = ["bash", "-euo", "pipefail", "-c"]
[settings.npm]
bun = true

[env]
_.path = ["./node_modules/.bin"]

[tasks.commit]
depends = ["buni:root"]
run = ["git add .", "bun run git-cz"]
run = ["git add .", "git-cz"]

[tasks."commit:staged"]
depends = ["buni:root"]
run = "bun run git-cz"
run = "git-cz"

[tasks.check]
depends = [
Expand All @@ -67,15 +70,15 @@ hide = true
[tasks."check:tsc"]
depends = ["buni"]
run = [
"bun run tsc",
"tsc",
"bun run --cwd worker tsc --project tsconfig.base.json",
"bun run --cwd worker tsc --project tsconfig.src.json",
"bun run --cwd worker tsc --project tsconfig.test.json",
]
[tasks."ci:tsc"]
depends = ["buni"]
run = [
"bun run tsc --incremental false",
"tsc --incremental false",
"bun run --cwd worker tsc --project tsconfig.base.json --incremental false",
"bun run --cwd worker tsc --project tsconfig.src.json --incremental false",
"bun run --cwd worker tsc --project tsconfig.test.json --incremental false",
Expand Down Expand Up @@ -184,15 +187,15 @@ hide = true
[tasks."worker:dev"]
depends = ["buni:worker"]
dir = "worker"
run = "args=$(mise run worker:wrangler-args) && bun run wrangler dev $args"
run = "args=$(mise run worker:wrangler-args) && wrangler dev $args"

[tasks."worker:test"]
depends = ["buni:worker"]
run = "bun run vitest watch --ui"
run = "vitest watch --ui"
dir = "worker"
[tasks."worker:test:ci"]
depends = ["buni:worker"]
run = "bun run vitest run"
run = "vitest run"
dir = "worker"

[tasks."buni"]
Expand Down
Loading