Skip to content

Commit bd4f9d4

Browse files
committed
CreatorGET - Add GitHub workflows
1 parent 8bbb13a commit bd4f9d4

2 files changed

Lines changed: 65 additions & 0 deletions

File tree

.github/dependabot.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: npm
4+
directory: /
5+
schedule:
6+
interval: weekly
7+
open-pull-requests-limit: 10
8+
groups:
9+
production-dependencies:
10+
dependency-type: production
11+
development-dependencies:
12+
dependency-type: development
13+
14+
- package-ecosystem: github-actions
15+
directory: /
16+
schedule:
17+
interval: weekly
18+
open-pull-requests-limit: 5

.github/workflows/ci.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
workflow_dispatch:
11+
12+
permissions:
13+
contents: read
14+
15+
concurrency:
16+
group: ci-${{ github.workflow }}-${{ github.ref }}
17+
cancel-in-progress: true
18+
19+
jobs:
20+
validate:
21+
runs-on: ubuntu-latest
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
node-version:
26+
- "18"
27+
- "22"
28+
29+
steps:
30+
- name: Checkout
31+
uses: actions/checkout@v7
32+
33+
- name: Setup Node
34+
uses: actions/setup-node@v7
35+
with:
36+
node-version: ${{ matrix.node-version }}
37+
cache: npm
38+
39+
- name: Install from lockfile
40+
run: npm ci --no-audit --no-fund --loglevel=error
41+
42+
- name: Syntax validation
43+
shell: bash
44+
run: find bin src -type f -name '*.js' -print0 | xargs -0 -n1 node --check
45+
46+
- name: Dependency audit
47+
run: npm audit --omit=dev --audit-level=critical

0 commit comments

Comments
 (0)