Skip to content

Commit

Permalink
Lint and test package in Go 1.13
Browse files Browse the repository at this point in the history
This also updates Mage to the latest version, which contains a bug fix
that prevented it to work with Go 1.13.

Linting is now done using both Go 1.12 and 1.13, in order to guarantee
that all files, independently of build tags, are linted.
  • Loading branch information
gbrlsnchs committed Sep 14, 2019
1 parent 7eb45ad commit 0218424
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,31 @@ name: 'Linux, macOS and Windows'
on: [push, pull_request]
jobs:
lint:
strategy:
matrix:
go: ['1.12', '1.13']
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Set up Go 1.12
uses: actions/setup-go@v1
with:
go-version: '1.12'
go-version: ${{ matrix.os }}
- name: Lint source code
env:
MAGEFILE_VERBOSE: true
run: |
GOBIN="$(pwd)/bin" go install github.com/magefile/mage
./bin/mage -d tools install
./bin/mage -d tools lint
./bin/mage install
./bin/mage lint
test:
needs: lint
strategy:
matrix:
os: [macOS-latest, ubuntu-latest, windows-latest]
go: ['1.11', '1.12']
go: ['1.11', '1.12', '1.13']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
Expand All @@ -38,4 +41,4 @@ jobs:
shell: bash
run: |
GOBIN="$(pwd)/bin" go install github.com/magefile/mage
./bin/mage -d tools test
./bin/mage test
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/gbrlsnchs/jwt/v3
go 1.10

require (
github.com/magefile/mage v1.8.0
github.com/magefile/mage v1.9.0
golang.org/x/crypto v0.0.0-20190829043050-9756ffdc2472
golang.org/x/lint v0.0.0-20190409202823-959b441ac422
golang.org/x/tools v0.0.0-20190710153321-831012c29e42
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
github.com/magefile/mage v1.8.0 h1:mzL+xIopvPURVBwHG9A50JcjBO+xV3b5iZ7khFRI+5E=
github.com/magefile/mage v1.8.0/go.mod h1:IUDi13rsHje59lecXokTfGX0QIzO45uVPlXnJYsXepA=
github.com/magefile/mage v1.9.0 h1:t3AU2wNwehMCW97vuqQLtw6puppWXHO+O2MHo5a50XE=
github.com/magefile/mage v1.9.0/go.mod h1:z5UZb/iS3GoOSn0JgWuiw7dxlurVYTu+/jHXqQg881A=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2 h1:VklqNMn3ovrHsnt90PveolxSbWFaJdECFbxSq0Mqo2M=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20190829043050-9756ffdc2472 h1:Gv7RPwsi3eZ2Fgewe3CBsuOebPwO27PoXzRpJPsvSSM=
Expand Down
File renamed without changes.

0 comments on commit 0218424

Please sign in to comment.