Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,28 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
go: [ '1.16.x', '1.15.x', '1.14.x' ]
go: [ '1.22.x', '1.21.x' ]

steps:
- name: Install Go ${{ matrix.go }}
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
cache: false
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Cache Modules
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-v1-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Run tests
run: go test -p 1 -v ./...

release:
needs: test
if: github.ref == 'refs/heads/master'
uses: upfluence/actions/.github/workflows/lib-any-release.yml@master
secrets: inherit
6 changes: 3 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ jobs:
timeout-minutes: 30
steps:
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: 1.16.x
go-version: 1.22.x
- name: Check out code
uses: actions/checkout@v1
uses: actions/checkout@v4
- name: golanci-lint
uses: upfluence/action-golangci-lint@master
with:
Expand Down
14 changes: 11 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
module github.com/upfluence/log

go 1.14
go 1.22

require (
github.com/sirupsen/logrus v1.6.0
github.com/stretchr/testify v1.6.1
github.com/upfluence/errors v0.0.0-20210413181856-d161314a8a8c
github.com/stretchr/testify v1.8.1
github.com/upfluence/errors v0.2.11
)

require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/konsorten/go-windows-terminal-sequences v1.0.3 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
golang.org/x/sys v0.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading
Loading