Skip to content

Commit f328fe0

Browse files
committed
Add Github actions workflow
1 parent fb8a0a2 commit f328fe0

File tree

4 files changed

+54
-19
lines changed

4 files changed

+54
-19
lines changed

Diff for: .github/workflows/ci.yaml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
jobs:
9+
build:
10+
strategy:
11+
matrix:
12+
go: ['1.14']
13+
os: [ubuntu-latest, macos-latest, windows-latest]
14+
runs-on: ${{ matrix.os }}
15+
steps:
16+
- name: Setup
17+
uses: actions/setup-go@v2
18+
with:
19+
go-version: ${{ matrix.go }}
20+
21+
- name: Checkout
22+
uses: actions/checkout@v2
23+
24+
- name: Dependencies
25+
run: |
26+
go version
27+
go get -v -t -d ./...
28+
go get -u golang.org/x/lint/golint
29+
30+
- name: Lint
31+
run: golint -set_exit_status=1 ./...
32+
33+
- name: Vet
34+
run: go vet ./...
35+
36+
- name: Test
37+
run: go test -v -coverprofile=coverage.txt -covermode=atomic ./...
38+
39+
- name: Coverage
40+
uses: codecov/codecov-action@v1

Diff for: .travis.yml

-19
This file was deleted.

Diff for: go.mod

+4
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
module github.com/adrg/xdg
2+
3+
go 1.14
4+
5+
require github.com/stretchr/testify v1.6.1

Diff for: go.sum

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
2+
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
3+
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
4+
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
5+
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
6+
github.com/stretchr/testify v1.6.1 h1:hDPOHmpOpP40lSULcqw7IrRb/u7w6RpDC9399XyoNd0=
7+
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
8+
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
9+
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=
10+
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=

0 commit comments

Comments
 (0)