Skip to content

Commit 89c76f7

Browse files
committed
feat: add github actions
1 parent 5bdbfce commit 89c76f7

3 files changed

Lines changed: 64 additions & 0 deletions

File tree

.github/dependabot.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "npm"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
open-pull-requests-limit: 10
8+
labels:
9+
- "dependencies"

.github/workflows/ci.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Use Node.js 22
14+
uses: actions/setup-node@v4
15+
with:
16+
node-version: 22
17+
cache: yarn
18+
- name: Enable corepack
19+
run: corepack enable
20+
- name: Install dependencies
21+
run: yarn install --immutable
22+
- name: Build all packages
23+
run: yarn build:all

.github/workflows/codeql.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CodeQL
2+
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
schedule:
8+
- cron: "0 3 * * 0"
9+
10+
jobs:
11+
analyze:
12+
name: Analyze
13+
runs-on: ubuntu-latest
14+
permissions:
15+
actions: read
16+
contents: read
17+
security-events: write
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
language: ["javascript-typescript"]
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v4
25+
- name: Initialize CodeQL
26+
uses: github/codeql-action/init@v3
27+
with:
28+
languages: ${{ matrix.language }}
29+
- name: Autobuild
30+
uses: github/codeql-action/autobuild@v3
31+
- name: Perform CodeQL Analysis
32+
uses: github/codeql-action/analyze@v3

0 commit comments

Comments
 (0)