1
0
mirror of https://github.com/nikoksr/notify.git synced 2025-02-07 13:08:12 +02:00

ci(action): add action to test and lint any PRs

This commit is contained in:
Niko Köser 2021-01-31 15:21:22 +01:00
parent 9e6be9ea2f
commit bd2f6ef14e
No known key found for this signature in database
GPG Key ID: F3F28C118DAA6375

40
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,40 @@
name: build
on:
push:
branches:
- 'master'
tags:
- 'v*'
pull_request:
jobs:
notify:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2.3.4
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.15
-
name: Cache Go modules
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
-
name: Make Setup
run: |
make setup
-
name: Make CI
run: |
make ci