From f8c5ec7b5949da08492bf750a0049664d52d7dc5 Mon Sep 17 00:00:00 2001 From: Peter Matseykanets Date: Mon, 26 Apr 2021 22:25:47 -0400 Subject: [PATCH] Use Go modules (#37) - Init Go modules - Update GitHub Actions build workflow Supersedes #36 --- .github/workflows/build.yml | 24 ++++++++++++++++-------- go.mod | 3 +++ 2 files changed, 19 insertions(+), 8 deletions(-) create mode 100644 go.mod diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c1fde56..1db15c1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: @@ -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 @@ -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 ./... diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..243ad74 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module github.com/VividCortex/godaemon + +go 1.12