Skip to content

Commit 12d1265

Browse files
committed
add dependabot, optimize CI
1 parent 81ce1bb commit 12d1265

File tree

3 files changed

+59
-40
lines changed

3 files changed

+59
-40
lines changed

.github/dependabot.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
groups:
6+
all-github-actions:
7+
patterns:
8+
- "*"
9+
schedule:
10+
interval: "monthly"
11+
day: "monday"
12+
time: "08:30"
13+
timezone: "Europe/Vienna"
14+
open-pull-requests-limit: 5
15+
labels:
16+
- "dependencies"
17+
- "github-actions"
18+
assignees:
19+
- "cleot" # devops

.github/workflows/build.yml

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

.github/workflows/ci.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: ["*"]
6+
pull_request:
7+
branches: ["*"]
8+
9+
jobs:
10+
validate:
11+
name: Validate (lint, test, build)
12+
runs-on: ubuntu-latest
13+
env:
14+
NODE_VERSION: 22
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
19+
20+
- name: Set up Node.js (${{ env.NODE_VERSION }})
21+
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
22+
with:
23+
node-version: ${{ env.NODE_VERSION }}
24+
25+
- name: Install dependencies
26+
run: npm ci
27+
28+
- name: Lint
29+
run: npm run lint
30+
31+
- name: Run tests and generate coverage
32+
run: npm run test -- --coverage
33+
34+
- name: Build
35+
run: npm run build
36+
37+
- name: Upload coverage to Codecov
38+
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
39+
with:
40+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)