Skip to content

Commit 19103dc

Browse files
committed
.github workflows and setup
1 parent 8d68808 commit 19103dc

File tree

6 files changed

+81
-40
lines changed

6 files changed

+81
-40
lines changed

.github/dependabot.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
version: 2
2+
23
registries:
34
npm-github:
45
type: npm-registry
56
url: https://npm.pkg.github.com
7+
token: ${{secrets.GH_PACKAGES_NPM_READ_TOKEN}}
8+
69
updates:
710
- package-ecosystem: "npm"
811
registries:
912
- npm-github
1013
directory: "/"
1114
schedule:
1215
interval: "weekly"
13-
day: "sunday"
16+
day: "monday"
1417
target-branch: "main"
1518
labels:
1619
- "dependencies"

.github/workflows/codestyle.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Code Style 🔎
2+
3+
on:
4+
workflow_dispatch:
5+
workflow_call:
6+
7+
jobs:
8+
codestyle:
9+
name: Code Style 🔎
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version-file: ".nvmrc"
16+
- run: npx --yes prettier -c .

.github/workflows/linting.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Linting 🔎
2+
3+
on:
4+
workflow_dispatch:
5+
workflow_call:
6+
7+
jobs:
8+
linting:
9+
name: Linting 🔎
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version-file: ".nvmrc"
16+
- run: npm ci
17+
- run: npm run lint

.github/workflows/testing.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Testing 🧪
2+
3+
on:
4+
workflow_dispatch:
5+
workflow_call:
6+
7+
jobs:
8+
testing:
9+
name: Testing 🧪
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version-file: ".nvmrc"
16+
- run: npm ci --workspace tests --include-workspace-root
17+
- run: npm run test -- --coverage

.github/workflows/typecheck.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Type checking 🔎
2+
3+
on:
4+
workflow_dispatch:
5+
workflow_call:
6+
7+
jobs:
8+
typecheck:
9+
name: Type checking 🔎
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version-file: ".nvmrc"
16+
- run: npm ci
17+
- run: npm run typecheck

.github/workflows/verify.yml

Lines changed: 10 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -14,46 +14,17 @@ concurrency:
1414

1515
jobs:
1616
codestyle:
17-
name: Code Style 🔎
18-
runs-on: ubuntu-latest
19-
steps:
20-
- uses: actions/checkout@v4
21-
- uses: actions/setup-node@v4
22-
with:
23-
node-version-file: ".nvmrc"
24-
- name: Env setup
25-
run: npm ci
26-
- run: npm run codestyle:check .
17+
uses: ./.github/workflows/codestyle.yml
18+
secrets: inherit
2719

28-
lint:
29-
name: Linting 🔎
30-
runs-on: ubuntu-latest
31-
steps:
32-
- uses: actions/checkout@v4
33-
- uses: actions/setup-node@v4
34-
with:
35-
node-version-file: ".nvmrc"
36-
- run: npm ci
37-
- run: npm run lint
20+
linting:
21+
uses: ./.github/workflows/linting.yml
22+
secrets: inherit
3823

3924
typecheck:
40-
name: Types 🔎
41-
runs-on: ubuntu-latest
42-
steps:
43-
- uses: actions/checkout@v4
44-
- uses: actions/setup-node@v4
45-
with:
46-
node-version-file: ".nvmrc"
47-
- run: npm ci
48-
- run: npm run typecheck
25+
uses: ./.github/workflows/typecheck.yml
26+
secrets: inherit
4927

50-
test:
51-
name: Testing 🔎
52-
runs-on: ubuntu-latest
53-
steps:
54-
- uses: actions/checkout@v4
55-
- uses: actions/setup-node@v4
56-
with:
57-
node-version-file: ".nvmrc"
58-
- run: npm ci
59-
- run: npm run test -- --coverage
28+
testing:
29+
uses: ./.github/workflows/testing.yml
30+
secrets: inherit

0 commit comments

Comments
 (0)