Skip to content

Commit 9f15b93

Browse files
afonsojramosKonrad Jamrozik
and
Konrad Jamrozik
authored
feat: migrate test pipelines to gh (#339)
Co-authored-by: Konrad Jamrozik <[email protected]>
1 parent ac97372 commit 9f15b93

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.github/workflows/ci.yml

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
jobs:
9+
ci:
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
matrix:
13+
include:
14+
- os: ubuntu-latest
15+
target-folder: drop-linux
16+
- os: windows-latest
17+
target-folder: drop
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
22+
- uses: actions/setup-node@v2
23+
with:
24+
node-version: "20"
25+
26+
- name: npm ci
27+
run: npm ci
28+
29+
- name: lint
30+
run: npm run lint
31+
32+
- name: prettier
33+
run: npm run prettier
34+
35+
- name: test
36+
run: npm test
37+
38+
- name: pack
39+
run: npm pack
40+
41+
- name: Copy Files to target-folder
42+
run: mkdir -p ${{ matrix.target-folder }} && cp *.tgz ${{ matrix.target-folder }}
43+
44+
- name: Upload Artifact
45+
uses: actions/upload-artifact@v2
46+
with:
47+
name: ${{ matrix.target-folder }}
48+
path: ${{ matrix.target-folder }}

0 commit comments

Comments
 (0)