Skip to content

Commit 1a5ab56

Browse files
authored
Create main.yml
build: add github action to lint and verify
1 parent 36d3597 commit 1a5ab56

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/main.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: CI
4+
5+
# Controls when the workflow will run
6+
on:
7+
# Triggers the workflow on push or pull request events but only for the master branch
8+
push:
9+
branches: [ main, android-support ]
10+
pull_request:
11+
branches: [ main, android-support ]
12+
13+
# Allows you to run this workflow manually from the Actions tab
14+
workflow_dispatch:
15+
16+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
17+
jobs:
18+
lint:
19+
runs-on: macos-latest
20+
steps:
21+
- uses: actions/checkout@v2
22+
- uses: actions/setup-node@v2
23+
with:
24+
node-version: '14'
25+
- run: npm i
26+
- run: npm run lint
27+
# verify-android:
28+
# runs-on: ubuntu-latest
29+
# needs: lint
30+
# steps:
31+
# - uses: actions/checkout@v2
32+
# - uses: actions/setup-node@v2
33+
# with:
34+
# node-version: '14'
35+
# - run: npm i
36+
# - run: npm run verify:android
37+
38+
verify-ios:
39+
runs-on: macos-latest
40+
needs: lint
41+
steps:
42+
- uses: actions/checkout@v2
43+
- uses: actions/setup-node@v2
44+
with:
45+
node-version: '14'
46+
- run: npm i
47+
- run: npm run verify:ios

0 commit comments

Comments
 (0)