-
Notifications
You must be signed in to change notification settings - Fork 9
32 lines (32 loc) · 980 Bytes
/
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
name: Test
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- name: Setup Go environment
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
- run: make test-all
pushover:
name: pushover if failure
if: github.ref_name == github.event.repository.default_branch && failure()
needs: [test]
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: pushover-actions
uses: umahmood/[email protected]
env:
PUSHOVER_TOKEN: ${{ secrets.PUSHOVER_API_KEY }}
PUSHOVER_USER: ${{ secrets.PUSHOVER_USER_KEY }}
with:
status: ${{ job.status }}
title: "Failed ${{ github.event.repository.full_name }}'s workflow (${{ github.workflow }})"
url: "${{ github.server_url }}/${{ github.event.repository.full_name }}/actions/runs/${{ github.run_id }}"
priority: 1 # High