diff --git a/.github/workflows/check-goreleaser.yml b/.github/workflows/check-goreleaser.yml index bae72bb..749764c 100644 --- a/.github/workflows/check-goreleaser.yml +++ b/.github/workflows/check-goreleaser.yml @@ -10,13 +10,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: - go-version: '1.20' + go-version: "1.22" - name: Install GoReleaser uses: goreleaser/goreleaser-action@v3 with: diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d10930f..e9c67ac 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -8,7 +8,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - goVer: ['1.19', '1.20'] + goVer: ["1.22"] # Defines the platform for each test run. runs-on: ${{ matrix.os }} # define the container services used to run integration tests @@ -40,11 +40,11 @@ jobs: steps: # Checks out our code locally so we can work with the files. - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 # The steps that will be run through for each version and platform combination. - name: Set up Go ${{ matrix.goVer }} - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.goVer }} cache: true diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a89a7bd..6a5111a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,14 +14,14 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - run: git fetch --force --tags - name: Set up Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: - go-version: '1.20' + go-version: "1.22" check-latest: true cache: true - name: Set release tag env variable @@ -38,7 +38,7 @@ jobs: echo ${{ env.CURRENT_VERSION }} - name: Run GoReleaser if: env.RELEASE_VERSION == env.CURRENT_VERSION - uses: goreleaser/goreleaser-action@v3 + uses: goreleaser/goreleaser-action@v5 with: version: latest args: release -f .goreleaser.yaml --clean diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 0c1553f..9cc1986 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -8,17 +8,17 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest] - goVer: ['1.19', '1.20'] + goVer: ["1.22"] # Defines the platform for each test run. runs-on: ${{ matrix.os }} steps: # Checks out our code locally so we can work with the files. - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 # The steps that will be run through for each version and platform combination. - name: Set up Go ${{ matrix.goVer }} - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.goVer }} cache: true @@ -32,15 +32,15 @@ jobs: steps: # Checks out our code locally so we can work with the files. - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 # Installs go using a single version. - name: Install Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: - go-version: '1.20' + go-version: "1.22" cache: false - name: Run linters - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v4 with: - version: v1.53 + version: v1.54 diff --git a/Dockerfile b/Dockerfile index 6ffa26c..67800fe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,10 @@ -FROM golang:1.18-bullseye AS builder +FROM golang:1.22-bookworm AS builder WORKDIR /src/app # install system dependencies RUN apt-get update \ - && apt-get -y install netcat \ + && apt-get -y install netcat-openbsd \ && apt-get clean COPY go.* ./ diff --git a/go.mod b/go.mod index 61fb988..c6877db 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/danvergara/dblab -go 1.20 +go 1.22 require ( github.com/Masterminds/squirrel v1.5.3 diff --git a/go.sum b/go.sum index 9b6c4ff..64ab664 100644 --- a/go.sum +++ b/go.sum @@ -605,6 +605,7 @@ github.com/google/pprof v0.0.0-20210601050228-01bbb1931b22/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20221118152302-e6195bd50e26 h1:Xim43kblpZXfIBQsbuBVKCudVG457BR2GZFIz3uw3hQ= +github.com/google/pprof v0.0.0-20221118152302-e6195bd50e26/go.mod h1:dDKJzRmX4S37WGHujM7tX//fmj1uioxKzKxz3lo4HJo= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= @@ -1887,6 +1888,7 @@ modernc.org/ccgo/v3 v3.9.2/go.mod h1:gnJpy6NIVqkETT+L5zPsQFj7L2kkhfPMzOghRNv/CFo modernc.org/ccgo/v3 v3.16.13 h1:Mkgdzl46i5F/CNR/Kj80Ri59hC8TKAhZrYSaqvkwzUw= modernc.org/ccgo/v3 v3.16.13/go.mod h1:2Quk+5YgpImhPjv2Qsob1DnZ/4som1lJTodubIcoUkY= modernc.org/ccorpus v1.11.6 h1:J16RXiiqiCgua6+ZvQot4yUuUy8zxgqbqEEUuGPlISk= +modernc.org/ccorpus v1.11.6/go.mod h1:2gEUTrWqdpH2pXsmTM1ZkjeSrUWDpjMu2T6m29L/ErQ= modernc.org/db v1.0.0/go.mod h1:kYD/cO29L/29RM0hXYl4i3+Q5VojL31kTUVpVJDw0s8= modernc.org/file v1.0.0/go.mod h1:uqEokAEn1u6e+J45e54dsEA/pw4o7zLrA2GwyntZzjw= modernc.org/fileutil v1.0.0/go.mod h1:JHsWpkrk/CnVV1H/eGlFf85BEpfkrp56ro8nojIq9Q8= @@ -1920,12 +1922,14 @@ modernc.org/strutil v1.1.3 h1:fNMm+oJklMGYfU9Ylcywl0CO5O6nTfaowNsh2wpPjzY= modernc.org/strutil v1.1.3/go.mod h1:MEHNA7PdEnEwLvspRMtWTNnp2nnyvMfkimT1NKNAGbw= modernc.org/tcl v1.5.2/go.mod h1:pmJYOLgpiys3oI4AeAafkcUfE+TKKilminxNyU/+Zlo= modernc.org/tcl v1.15.2 h1:C4ybAYCGJw968e+Me18oW55kD/FexcHbqH2xak1ROSY= +modernc.org/tcl v1.15.2/go.mod h1:3+k/ZaEbKrC8ePv8zJWPtBSW0V7Gg9g8rkmhI1Kfs3c= modernc.org/token v1.0.0/go.mod h1:UGzOrNV1mAFSEB63lOFHIpNRUVMvYTc6yu1SMY/XTDM= modernc.org/token v1.0.1 h1:A3qvTqOwexpfZZeyI0FeGPDlSWX5pjZu9hF4lU+EKWg= modernc.org/token v1.0.1/go.mod h1:UGzOrNV1mAFSEB63lOFHIpNRUVMvYTc6yu1SMY/XTDM= modernc.org/z v1.0.1-0.20210308123920-1f282aa71362/go.mod h1:8/SRk5C/HgiQWCgXdfpb+1RvhORdkz5sw72d3jjtyqA= modernc.org/z v1.0.1/go.mod h1:8/SRk5C/HgiQWCgXdfpb+1RvhORdkz5sw72d3jjtyqA= modernc.org/z v1.7.3 h1:zDJf6iHjrnB+WRD88stbXokugjyc0/pB91ri1gO6LZY= +modernc.org/z v1.7.3/go.mod h1:Ipv4tsdxZRbQyLq9Q1M6gdbkxYzdlrciF2Hi/lS7nWE= modernc.org/zappy v1.0.0/go.mod h1:hHe+oGahLVII/aTTyWK/b53VDHMAGCBYYeZ9sn83HC4= rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4=