diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 0d9f279..ab136c7 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -8,12 +8,15 @@ jobs: lint: name: Lint the code runs-on: ubuntu-latest - container: golang:1.19 + container: golang:1.21 steps: - name: Check out repository code uses: actions/checkout@v3 + - name: Mark source directory as safe. + run: git config --global --add safe.directory $GITHUB_WORKSPACE + - name: Check formatting using gofmt run: gofmt -s -l -d . diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3dd8512..a24ecba 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,7 +25,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 - with: { go-version: 1.19 } + with: { go-version: 1.21 } - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 diff --git a/.github/workflows/unit-testing.yml b/.github/workflows/unit-testing.yml index 0fa0067..ec61d33 100644 --- a/.github/workflows/unit-testing.yml +++ b/.github/workflows/unit-testing.yml @@ -14,11 +14,11 @@ jobs: steps: - name: Check out repository code uses: actions/checkout@v3 - + - name: Install go uses: actions/setup-go@v4 with: - go-version: '1.19' + go-version: '1.21' - name: Install dependencies run: go mod download diff --git a/go.mod b/go.mod index 7352e79..71337e8 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/spacelift-io/spacectl -go 1.19 +go 1.21 require ( github.com/ProtonMail/gopenpgp/v2 v2.6.1