Skip to content

Commit 2c4cda1

Browse files
committed
ci: reorganize workflows into pure orchestrators with consistent naming
1 parent 8d1b0cb commit 2c4cda1

11 files changed

Lines changed: 62 additions & 85 deletions
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: check
1+
name: Checks
22

33
on:
44
workflow_dispatch:

.github/workflows/test-integration.yml renamed to .github/workflows/ci-integration-tests.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: test-integration
1+
name: Integration Tests
22

33
on:
44
workflow_dispatch:
@@ -22,9 +22,8 @@ jobs:
2222
- run: deno task test:integration:${{ matrix.ircd }}
2323

2424
node:
25-
name: Node.js · ergo
25+
name: Node.js
2626
runs-on: ubuntu-latest
27-
needs: [deno]
2827

2928
steps:
3029
- uses: actions/checkout@v4
@@ -35,9 +34,8 @@ jobs:
3534
- run: npm run test:node:integration:ergo
3635

3736
bun:
38-
name: Bun · ergo
37+
name: Bun
3938
runs-on: ubuntu-latest
40-
needs: [deno]
4139

4240
steps:
4341
- uses: actions/checkout@v4
Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
name: test-coverage
1+
name: Unit Tests
22

33
on:
44
workflow_dispatch:
55
workflow_call:
66

77
jobs:
8-
coverage:
9-
name: Check threshold
8+
deno:
9+
name: Deno · coverage
1010
runs-on: ubuntu-latest
1111

1212
steps:
@@ -24,3 +24,27 @@ jobs:
2424
echo "::error::Coverage ${COVERAGE}% is below the 95% threshold"
2525
exit 1
2626
fi
27+
28+
node:
29+
name: Node.js
30+
runs-on: ubuntu-latest
31+
32+
steps:
33+
- uses: actions/checkout@v4
34+
- uses: actions/setup-node@v4
35+
with:
36+
node-version: 22
37+
- run: npm install
38+
- run: npm run test:node
39+
40+
bun:
41+
name: Bun
42+
runs-on: ubuntu-latest
43+
44+
steps:
45+
- uses: actions/checkout@v4
46+
- uses: oven-sh/setup-bun@v2
47+
with:
48+
bun-version: latest
49+
- run: bun install
50+
- run: bun test core/*_test.ts plugins/*_test.ts runtime/bun_test.ts

.github/workflows/ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: CI
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
branches:
7+
- main
8+
push:
9+
branches:
10+
- main
11+
12+
jobs:
13+
checks:
14+
name: Checks
15+
uses: ./.github/workflows/ci-checks.yml
16+
17+
unit:
18+
name: Unit Tests
19+
needs: [checks]
20+
uses: ./.github/workflows/ci-unit-tests.yml
21+
22+
integration:
23+
name: Integration Tests
24+
needs: [unit]
25+
uses: ./.github/workflows/ci-integration-tests.yml

.github/workflows/release-gh.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: release-gh
1+
name: GitHub Release
22

33
on:
44
workflow_dispatch:

.github/workflows/release-jsr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: release-jsr
1+
name: Publish to JSR
22

33
on:
44
workflow_dispatch:

.github/workflows/release-npm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: release-npm
1+
name: Publish to npm
22

33
on:
44
workflow_dispatch:

.github/workflows/release-tag.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: release-tag
1+
name: Tag Release
22

33
on:
44
workflow_dispatch:

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: release
1+
name: Release
22

33
on:
44
workflow_dispatch:
@@ -20,7 +20,7 @@ jobs:
2020
release-type: ${{ inputs.release-type }}
2121

2222
gh:
23-
name: GitHub Release
23+
name: GitHub
2424
needs: [tag]
2525
uses: ./.github/workflows/release-gh.yml
2626
with:

.github/workflows/test-unit.yml

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

0 commit comments

Comments
 (0)