Skip to content

Commit 1600921

Browse files
authored
chore(ci): add gh workflow (#7)
1 parent 3363bff commit 1600921

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

.github/workflows/ci.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths-ignore:
8+
- "**.md"
9+
- ".vscode/**"
10+
pull_request:
11+
paths-ignore:
12+
- "**.md"
13+
- ".vscode/**"
14+
workflow_dispatch:
15+
16+
env:
17+
NODE_VERSION: 20
18+
JAVA_VERSION: 21
19+
20+
jobs:
21+
build:
22+
name: Build
23+
runs-on: macos-15
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v4
27+
- name: Set up Node.js ${{ env.NODE_VERSION }}
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version: ${{ env.NODE_VERSION }}
31+
- name: Set up Java ${{ env.JAVA_VERSION }}
32+
uses: actions/setup-java@v4
33+
with:
34+
distribution: 'zulu'
35+
java-version: ${{ env.JAVA_VERSION }}
36+
- name: Install dependencies
37+
run: npm ci
38+
- name: Build iOS
39+
run: npm run verify:ios
40+
- name: Build Android
41+
run: npm run verify:android
42+
- name: Build Web
43+
run: npm run verify:web
44+
- name: Upload artifacts
45+
uses: actions/upload-artifact@v4
46+
with:
47+
name: dist
48+
path: dist
49+
lint:
50+
name: Lint
51+
runs-on: macos-latest
52+
steps:
53+
- name: Checkout
54+
uses: actions/checkout@v4
55+
- name: Set up Node.js ${{ env.NODE_VERSION }}
56+
uses: actions/setup-node@v4
57+
with:
58+
node-version: ${{ env.NODE_VERSION }}
59+
- name: Install dependencies
60+
run: npm ci
61+
- name: Run Lint script
62+
run: npm run lint

0 commit comments

Comments
 (0)