-
Notifications
You must be signed in to change notification settings - Fork 6
51 lines (50 loc) · 1.06 KB
/
verify.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
# SPDX-FileCopyrightText: The matrix-alertmanager-receiver Authors
# SPDX-License-Identifier: GPL-3.0-or-later
name: Verify Commits
on:
push:
branches: [ main ]
paths:
- .github/workflows/verify.yml
- go.mod
- go.sum
- main.go
- alertmanager/**
- config/**
- handler/**
- matrix/**
pull_request:
branches: [ main ]
paths:
- .github/workflows/verify.yml
- go.mod
- go.sum
- main.go
- alertmanager/**
- config/**
- handler/**
- matrix/**
jobs:
test:
name: Tests on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- windows-latest
- ubuntu-latest
steps:
- id: checkout
name: Checkout
uses: actions/checkout@v4
- id: setup_go
name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod
cache: true
- id: tests
name: Run Tests
run: go test ./...