Skip to content

Commit 23f9f22

Browse files
committed
chore(ci): modernize
1 parent 236e9e8 commit 23f9f22

10 files changed

Lines changed: 110 additions & 802 deletions

File tree

.cspell.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"version": "0.2",
33
"language": "en,en-gb",
44
"words": [
5+
"amannn",
56
"Atsumu",
67
"autoprefixer",
78
"barbaz",
@@ -12,7 +13,6 @@
1213
"cobertura",
1314
"codecov",
1415
"colorette",
15-
"commitlint",
1616
"compat",
1717
"configjs",
1818
"configtest",

.github/dependabot.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ updates:
1717
- package-ecosystem: "github-actions"
1818
directory: "/"
1919
schedule:
20-
interval: daily
21-
time: "04:00"
22-
timezone: Europe/Berlin
20+
interval: monthly
2321
open-pull-requests-limit: 20
2422
labels:
2523
- dependencies
24+
groups:
25+
dependencies:
26+
patterns:
27+
- "*"

.github/workflows/ci.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
lint:
14+
name: Lint
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
20+
21+
- name: Setup Node.js
22+
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
23+
with:
24+
node-version: "lts/*"
25+
cache: "npm"
26+
27+
- name: Install dependencies
28+
run: npm ci
29+
30+
- name: Lint
31+
run: npm run lint
32+
test:
33+
name: Test "${{ matrix.test-type }}" - ${{ matrix.os }} (Node.js ${{ matrix.node-version }})
34+
35+
strategy:
36+
fail-fast: false
37+
matrix:
38+
os: [ubuntu-latest, windows-latest, macos-latest]
39+
node-version: [18.x, 20.x, 22.x, 24.x]
40+
test-type: [coverage, smoketests]
41+
42+
runs-on: ${{ matrix.os }}
43+
44+
steps:
45+
- name: Checkout code
46+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
47+
48+
- name: Setup Node.js ${{ matrix.node-version }}
49+
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
50+
with:
51+
node-version: ${{ matrix.node-version }}
52+
cache: "npm"
53+
54+
- name: Install dependencies
55+
run: npm ci
56+
57+
- name: Prepare environment for tests
58+
run: npm run build:ci
59+
60+
- name: Run tests
61+
run: npm run test:${{ matrix.test-type }} -- --ci
62+
63+
- name: Upload coverage to Codecov
64+
if: always() && matrix.test-type == 'coverage'
65+
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
1-
name: "Dependency Review"
2-
on: [pull_request]
1+
# Dependency Review Action
2+
#
3+
# This Action will scan dependency manifest files that change as part of a Pull Request,
4+
# surfacing known-vulnerable versions of the packages declared or updated in the PR.
5+
# Once installed, if the workflow run is marked as required,
6+
# PRs introducing known-vulnerable packages will be blocked from merging.
7+
#
8+
# Source repository: https://github.com/actions/dependency-review-action
9+
name: Review Dependencies
10+
11+
on: pull_request
312

413
permissions:
514
contents: read
@@ -8,7 +17,8 @@ jobs:
817
dependency-review:
918
runs-on: ubuntu-latest
1019
steps:
11-
- name: "Checkout Repository"
20+
- name: Git Checkout
1221
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
13-
- name: "Dependency Review"
22+
23+
- name: Review Dependencies
1424
uses: actions/dependency-review-action@3c4e3dcb1aa7874d2c16be7d79418e9b7efd6261 # v4.8.2

.github/workflows/nodejs.yml

Lines changed: 0 additions & 149 deletions
This file was deleted.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Check PR title
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- reopened
8+
- edited
9+
10+
permissions:
11+
pull-requests: read
12+
13+
jobs:
14+
main:
15+
name: Validate PR title
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.husky/commit-msg

Lines changed: 0 additions & 1 deletion
This file was deleted.

commitlint.config.js

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

0 commit comments

Comments
 (0)