Skip to content

Commit faa23f6

Browse files
authored
Merge pull request #13652 from owncloud/ci/build
ci: [OCISDEV-733] add basic build and test GH action
2 parents c055fbc + 8d4b0f4 commit faa23f6

1 file changed

Lines changed: 51 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Test and build
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
17+
18+
- name: Setup pnpm
19+
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320
20+
with:
21+
version: 10.29.2
22+
23+
- name: Setup Node.js
24+
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f
25+
with:
26+
node-version: 24
27+
cache: 'pnpm'
28+
29+
- name: Install dependencies
30+
run: pnpm install
31+
32+
- name: Check licenses
33+
run: pnpm licenses:check
34+
35+
- name: Save licenses
36+
run: pnpm licenses:csv && pnpm licenses:save
37+
38+
- name: Check types
39+
run: pnpm check:types
40+
41+
- name: Check format
42+
run: pnpm check:format
43+
44+
- name: Lint
45+
run: pnpm lint
46+
47+
- name: Run unit tests
48+
run: pnpm test:unit
49+
50+
- name: Build
51+
run: make dist

0 commit comments

Comments
 (0)