-
Notifications
You must be signed in to change notification settings - Fork 22
41 lines (33 loc) · 889 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: ci
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
build_test:
name: Build & Test
if: "! contains(github.event.head_commit.message, '[skip ci]')"
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Lint
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Set up Android NDK
uses: nttld/setup-ndk@dbacc5871a0fac6eef9a09d2ca86bc8bf79432c3 # [email protected]
id: setup-ndk
with:
ndk-version: r23
- name: Build
run: yarn build
env:
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
- name: Test
run: yarn test:macos
- name: License Check
run: yarn license:check