-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (40 loc) · 1.18 KB
/
build.yml
File metadata and controls
50 lines (40 loc) · 1.18 KB
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
# This is a basic workflow to help you get started with Actions
name: Build
# Controls when the workflow will run
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
create:
tags:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install
run: npm install
- name: Test
run: npm run test
- name: Deploy coveralls
if: success()
uses: coverallsapp/github-action@1.1.3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Notify discord success
uses: th0th/notify-discord@v0.4.1
if: ${{ success() }}
env:
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK }}
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_JOB_NAME: "Build and deploy"
GITHUB_JOB_STATUS: 'success'
- name: Notify discord failure
uses: th0th/notify-discord@v0.4.1
if: ${{ failure() }}
env:
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK }}
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_JOB_NAME: "Build and deploy"
GITHUB_JOB_STATUS: 'failure'