Add Github workflows for CI and PRs.
[mailpopbox.git] / .github / workflows / ci.yml
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 - uses: actions/checkout@v2
14 - uses: actions/setup-go@v2
15 with:
16 go-version: ^1.14
17 id: go
18 - run: go get -v -t -d ./...
19 - run: make
20 - uses: actions/upload-artifact@v2
21 with:
22 path: cover.html
23 - uses: actions/upload-artifact@v2
24 with:
25 name: mailpopbox-linux-amd64
26 path: mailpopbox-*-linux-amd64.zip
27 - uses: actions/upload-artifact@v2
28 with:
29 name: mailpopbox-mac-amd64
30 path: mailpopbox-*-mac-amd64.zip