Skip to content

Commit 40feb81

Browse files
shezadkhan137Shezad Khan
authored and
Shezad Khan
committed
Add GH Actions
1 parent db2a8e5 commit 40feb81

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/go.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Go
2+
on: [pull_request]
3+
jobs:
4+
build:
5+
name: Build
6+
runs-on: ubuntu-16.04
7+
steps:
8+
9+
- name: Set up Go 1.12
10+
uses: actions/setup-go@v1
11+
with:
12+
go-version: 1.12
13+
id: go
14+
15+
- name: Install debs
16+
run: sudo apt update &&
17+
sudo apt install -y --no-install-recommends
18+
fontconfig libfreetype6 libjpeg-turbo8
19+
libx11-6 libxcb1 libxext6 libpng-dev
20+
libxrender1 xfonts-75dpi xfonts-base &&
21+
wget -O wkhtmltox.deb https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.trusty_amd64.deb &&
22+
sudo dpkg -i *.deb &&
23+
rm -f *.deb
24+
25+
- name: Install zfvet
26+
run: GOBIN=/usr/local/bin/ go install github.com/riskive/zfvet/cmd/zfvet
27+
28+
- name: Install zfvet
29+
run: zfvet ./...
30+
31+
- name: Check out code into the Go module directory
32+
uses: actions/checkout@v1
33+
34+
- name: golangci-lint
35+
uses: reviewdog/action-golangci-lint@v1
36+
# uses: docker://reviewdog/action-golangci-lint:v1 # pre-build docker image
37+
with:
38+
github_token: ${{ secrets.github_token }}
39+
40+
- name: Build
41+
run: go build -v .

0 commit comments

Comments
 (0)