Skip to content

Commit ff2c68a

Browse files
committed
fix: add github actions
1 parent d66b7f1 commit ff2c68a

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

.github/workflows/build.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Set up Go 1.16
14+
uses: actions/setup-go@v2
15+
with:
16+
go-version: ^1.16
17+
18+
- name: Check out code into the Go module directory
19+
uses: actions/checkout@v2
20+
21+
- name: Regenerate and Test
22+
run: |
23+
make clean fmt
24+
make generate

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ endif
88
.DEFAULT_GOAL := all
99

1010
.PHONY: all
11-
all: test
11+
all: clean fmt test
1212

1313
.PHONY: test
1414
test:

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module github.com/zencoder/go-dash/v3
22

3-
go 1.13
3+
go 1.16

0 commit comments

Comments
 (0)