Skip to content

Commit 251e616

Browse files
committed
chore: Add Forgejo CI workflow.
1 parent 7259bd2 commit 251e616

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.forgejo/workflows/ci.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# See: https://forgejo.org/docs/next/user/actions/github-actions
2+
name: ci
3+
on:
4+
push:
5+
paths-ignore:
6+
- "**.md"
7+
pull_request:
8+
paths-ignore:
9+
- "**.md"
10+
env:
11+
FORCE_COLOR: 3
12+
concurrency:
13+
group: ${{ github.ref }}
14+
cancel-in-progress: ${{ github.ref != github.event.repository.default_branch }}
15+
jobs:
16+
ci:
17+
name: CI
18+
if: github.ref_type != 'tag'
19+
runs-on: docker
20+
steps:
21+
- name: Clone
22+
uses: actions/checkout@v4
23+
with:
24+
fetch-depth: 0
25+
26+
- name: Setup pnpm
27+
uses: pnpm/action-setup@v4
28+
29+
- name: Setup Node
30+
uses: actions/setup-node@v4
31+
with:
32+
node-version-file: .nvmrc
33+
cache: pnpm
34+
35+
- name: Install Dependencies
36+
run: pnpm install --frozen-lockfile
37+
38+
- name: Lint
39+
run: pnpm lint
40+
41+
- name: Test
42+
run: pnpm test:coverage
43+
44+
- name: Build
45+
run: pnpm build

0 commit comments

Comments
 (0)