generated from koinos/koinos-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 4
57 lines (48 loc) · 1.39 KB
/
test.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
name: Test
on:
push:
branches:
- "*"
jobs:
build:
runs-on: ${{ matrix.platform }}
name: "${{ matrix.platform }} ${{ matrix.node-version }}"
continue-on-error: true
strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
node-version: [20.x, 18.x]
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
with:
submodules: recursive
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: yarn --frozen-lockfile
- name: Run test
run: yarn ci
# Don't report failures right now. Needs more work
#
# report-failure:
# name: Report to Slack
# needs:
# - build
# runs-on: ubuntu-latest
# if: always()
#
# steps:
# - name: Report Failure
# if: env.WORKFLOW_CONCLUSION == 'failure'
# uses: ravsamhq/notify-slack-action@v2
# with:
# status: 'failure'
# notification_title: "{workflow} has {status_message}"
# message_format: "{emoji} *{workflow}* {status_message} in <{repo_url}|{repo}>"
# footer: "Linked Repo <{repo_url}|{repo}> | <{workflow_url}|View Workflow>"
# notify_when: "failure"
# env:
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_ALERT_WEBHOOK }}