From 88c8c0049326be236283cb1b1f54d49a5241be20 Mon Sep 17 00:00:00 2001 From: John Judd Date: Fri, 21 Jul 2023 11:43:11 -0500 Subject: [PATCH] updated gh workflows to use latest actions and updated go, dbs, linter versions --- .github/workflows/go.yml | 8 ++++---- .github/workflows/golangci-lint.yml | 10 +++++++--- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index b2452e0f..af6885ff 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -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 }} @@ -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 diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index e2593b51..ab5265d8 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -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