Skip to content

Commit d61bd4f

Browse files
committed
chore: Small improvements to CI pipelines
1 parent a5195a6 commit d61bd4f

File tree

8 files changed

+46
-41
lines changed

8 files changed

+46
-41
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,13 @@ jobs:
2828
cache: pnpm
2929

3030
- name: Install dependencies
31-
run: pnpm i --frozen-lockfile
31+
run: pnpm install --frozen-lockfile
3232

3333
- name: Build
3434
run: pnpm run build
3535

36-
- name: Lint
37-
run: |
38-
pnpm run pretty:check
39-
pnpm run eslint
36+
- name: Check
37+
run: pnpm run check
4038

4139
- name: Test
4240
run: pnpm run test:coverage
@@ -180,6 +178,7 @@ jobs:
180178
continue-on-error: true
181179
steps:
182180
- uses: actions/checkout@v4
181+
183182
- uses: pnpm/action-setup@v4
184183

185184
- uses: actions/setup-node@v4

.github/workflows/fail_pr_to_master.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- master
77

88
jobs:
9-
fail_pr:
9+
fail-pr-to-master:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Fail PR to master

.github/workflows/merge_master_to_dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- master
77

88
jobs:
9-
merge_master_to_dev:
9+
merge-master-to-dev:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Update dependencies
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: "0 0 * * 0"
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
12+
jobs:
13+
update-dependencies:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
token: ${{ secrets.GH_TOKEN }}
19+
- uses: pnpm/action-setup@v4
20+
- uses: actions/setup-node@v4
21+
with:
22+
node-version: 22
23+
cache: pnpm
24+
- run: |
25+
pnpm self-update
26+
pnpm up --latest
27+
- uses: peter-evans/create-pull-request@v7
28+
id: cpr
29+
with:
30+
commit-message: "fix(ignore): update dependencies"
31+
branch: "deps/all"
32+
title: "fix(ignore): update dependencies"
33+
token: ${{ secrets.GH_TOKEN }}
34+
- uses: peter-evans/create-or-update-comment@v4
35+
if: ${{ steps.cpr.outputs.pull-request-number }}
36+
with:
37+
issue-number: ${{ steps.cpr.outputs.pull-request-number }}
38+
body: "CC: @Koenkk"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ name: update-dep
66

77
permissions: {}
88
jobs:
9-
update_dep:
9+
update-dependency:
1010
permissions:
1111
contents: write
1212
pull-requests: write

.github/workflows/update_deps.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"pretty:write": "prettier --write .",
2828
"pretty:check": "prettier --check .",
2929
"start": "node index.js",
30+
"check": "pnpm run pretty:check && pnpm run eslint",
3031
"test": "vitest run --config ./test/vitest.config.mts",
3132
"test:coverage": "vitest run --config ./test/vitest.config.mts --coverage",
3233
"test:watch": "vitest watch --config ./test/vitest.config.mts",

0 commit comments

Comments
 (0)