-
Notifications
You must be signed in to change notification settings - Fork 30
43 lines (37 loc) · 910 Bytes
/
node-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
42
43
name: Node CI
on:
push:
branches:
- master
- develop
pull_request:
defaults:
run:
shell: bash
jobs:
build:
runs-on: ${{matrix.os}}
env:
BAIDU_APPID: ${{ secrets.BAIDU_APPID }}
BAIDU_APP_KEY: ${{ secrets.BAIDU_APP_KEY }}
strategy:
matrix:
node-version: [12.x]
os: [macos-10.15, ubuntu-latest]
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Create env file
run: |
touch .env
echo BAIDU_APPID=${{ secrets.BAIDU_APPID }} >> .env
echo BAIDU_APP_KEY=${{ secrets.BAIDU_APP_KEY }} >> .env
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: yarn install
- name: Test
run: yarn run test