-
Notifications
You must be signed in to change notification settings - Fork 12
49 lines (47 loc) · 1.39 KB
/
staging.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
44
45
46
47
48
49
name: Build
on:
push:
branches: [staging-clever]
pull_request:
branches: [staging-clever]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14.16.0'
cache: 'yarn'
- run: yarn install
- run: yarn build
unit-tests:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14.16.0'
cache: 'yarn'
- run: yarn install
- run: yarn test-ci
deployment:
runs-on: ubuntu-latest
needs: [build, unit-tests]
if: "github.event_name == 'push' && !contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.pull_request.title, '[skip ci]') && !contains(github.event.pull_request.title, '[ci skip]')"
timeout-minutes: 40
env:
NODE_VERSION: 16.17.1
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: 47ng/[email protected]
with:
appID: ${{ secrets.CLEVER_APP_STAGING }}
force: true
env:
CLEVER_TOKEN: ${{ secrets.CLEVER_TOKEN }}
CLEVER_SECRET: ${{ secrets.CLEVER_SECRET }}