Skip to content

Commit

Permalink
Use Go modules (#15)
Browse files Browse the repository at this point in the history
- Init Go modules
- Update GitHub Actions build workflow
- Remove `dep`'s `Gopkg.*` files

Projects that are still using `dep` can pin the specific revision 48da771.
  • Loading branch information
pmatseykanets authored Apr 26, 2021
1 parent 48da771 commit 5e1fcf9
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 67 deletions.
33 changes: 15 additions & 18 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 @@ -13,22 +25,14 @@ jobs:
fail-fast: false
matrix:
include:
- go: 1.12
build-with: true
- go: 1.13
build-with: false
- go: 1.14
build-with: false
- 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: off
GO111MODULE: on

steps:
- name: Set up Go
Expand All @@ -38,13 +42,6 @@ jobs:

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

- name: Install dep
run: curl -s -L -o dep https://github.com/golang/dep/releases/download/v0.5.4/dep-linux-amd64 && chmod +x dep && sudo mv dep /usr/local/bin/

- run: dep ensure -v -vendor-only

- name: Vet
run: go vet ./...
Expand Down
15 changes: 0 additions & 15 deletions Gopkg.lock

This file was deleted.

34 changes: 0 additions & 34 deletions Gopkg.toml

This file was deleted.

5 changes: 5 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module github.com/VividCortex/robustly

go 1.12

require github.com/VividCortex/ewma v1.2.0
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github.com/VividCortex/ewma v1.2.0 h1:f58SaIzcDXrSy3kWaHNvuJgJ3Nmz59Zji6XoJR/q1ow=
github.com/VividCortex/ewma v1.2.0/go.mod h1:nz4BbCtbLyFDeC9SUHbtcT5644juEuWfUAUnGx7j5l4=

0 comments on commit 5e1fcf9

Please sign in to comment.