Skip to content

Commit

Permalink
Use Go modules (#37)
Browse files Browse the repository at this point in the history
- Init Go modules
- Update GitHub Actions build workflow

Supersedes #36
  • Loading branch information
pmatseykanets authored Apr 27, 2021
1 parent eda9777 commit f8c5ec7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
24 changes: 16 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,19 @@ on:
push:
branches:
- master
paths-ignore:
- .github/**
- .gitignore
- .whitesource
- codecov.yml
- README.md
pull_request:
paths-ignore:
- .github/**
- .gitignore
- .whitesource
- codecov.yml
- README.md

jobs:
build:
Expand All @@ -15,13 +27,12 @@ jobs:
include:
- go: 1.15
build-with: true
- go: 1.16
build-with: false
continue-on-error: ${{ matrix.build-with == false }}
name: Build with ${{ matrix.go }}
defaults:
run:
working-directory: src/github.com/${{ github.repository }}
env:
GOPATH: ${{ github.workspace }}
GO111MODULE: on

steps:
- name: Set up Go
Expand All @@ -31,9 +42,6 @@ jobs:

- name: Checkout code
uses: actions/checkout@v2
with:
path: src/github.com/${{ github.repository }}

- name: Vet
run: |
go vet ./...
run: go vet ./...
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/VividCortex/godaemon

go 1.12

0 comments on commit f8c5ec7

Please sign in to comment.