-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnodejs.yml
66 lines (59 loc) · 1.69 KB
/
nodejs.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Node CI
on:
push:
branches:
# long-lived branches
- master
- develop
- next
pull_request:
branches:
- "*"
jobs:
yarncheck:
runs-on: ubuntu-20.04 #please unpin once possible
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- run: npm install -g yarn
- run: yarn bootstrap
- run: test -z "$(git diff)" || (echo 'Please run yarn and commit all changes to yarn.lock'; false)
build:
strategy:
matrix:
platform: [ubuntu-20.04] #please unpin once possible
node-version: [10.x, 12.x, 14.x]
env: [GETH=true, PACKAGES=true, INTEGRATION=true]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install -g yarn
- run: yarn bootstrap
- run: ${{ matrix.env }} yarn ci
env:
CI: true
- uses: 8398a7/action-slack@v1.1.1
with:
type: failure
failedMenthon: ""
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
if: failure()
slack_notification:
needs: [yarncheck, build]
runs-on: ubuntu-20.04 #please unpin once possible
continue-on-error: true
steps:
- uses: 8398a7/action-slack@v1.1.1
continue-on-error: true
with:
type: success
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
if: github.event_name == 'pull_request' && !github.event.pull_request.head.repo.fork