Skip to content

Commit

Permalink
updated gh workflows to use latest actions and updated go, dbs, linte…
Browse files Browse the repository at this point in the history
…r versions
  • Loading branch information
funkyshu committed Jul 21, 2023
1 parent 9b326c8 commit 88c8c00
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go_version: ["1.15", "1.16", "latest"]
go_version: ["1.18", "1.19", "latest"]
db_versions:
- mysql_version: 5
postgres_version: 9.6
sqlserver_version: "2017-CU8-ubuntu"
- mysql_version: 5
postgres_version: "10.10"
postgres_version: 10.23
sqlserver_version: "2017-CU8-ubuntu"
- mysql_version: 8
postgres_version: 11.5
postgres_version: 11.20
sqlserver_version: "2017-CU8-ubuntu"
env:
GO_VERSION: ${{ matrix.go_version }}
Expand All @@ -29,7 +29,7 @@ jobs:
SQLSERVER_VERSION: ${{ matrix.db_versions.sqlserver_version }}
steps:
- name: checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Test
run: docker-compose run goqu-coverage
- name: Upload coverage to Codecov
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,16 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '1.20'
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
uses: golangci/golangci-lint-action@v3
with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: v1.39.0
version: v1.53.0

# Optional: working directory, useful for monorepos
# working-directory: somedir
Expand Down

0 comments on commit 88c8c00

Please sign in to comment.