Skip to content

Commit 952aedc

Browse files
committed
chore: Add Forgejo CI workflow.
1 parent 7259bd2 commit 952aedc

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.forgejo/workflows/ci.yml

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

0 commit comments

Comments
 (0)