From dfe7c25c2750d1b4f653a891bc268dcaf3d595fb Mon Sep 17 00:00:00 2001 From: Alex Kataev Date: Thu, 11 Apr 2024 12:36:28 +0500 Subject: [PATCH] update ci --- .github/workflows/{go-test.yml => _go-test.yml} | 4 ++-- .github/workflows/{golangci-lint.yml => _golangci-lint.yml} | 6 +++--- .github/workflows/{goreleaser.yml => _goreleaser.yml} | 6 +++--- .github/workflows/release.yml | 6 +++--- .github/workflows/test.yml | 4 ++-- 5 files changed, 13 insertions(+), 13 deletions(-) rename .github/workflows/{go-test.yml => _go-test.yml} (73%) rename .github/workflows/{golangci-lint.yml => _golangci-lint.yml} (58%) rename .github/workflows/{goreleaser.yml => _goreleaser.yml} (72%) diff --git a/.github/workflows/go-test.yml b/.github/workflows/_go-test.yml similarity index 73% rename from .github/workflows/go-test.yml rename to .github/workflows/_go-test.yml index 1ed882b..425b670 100644 --- a/.github/workflows/go-test.yml +++ b/.github/workflows/_go-test.yml @@ -8,8 +8,8 @@ jobs: name: test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: go-version: '1.22' - run: go test -race -v ./... diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/_golangci-lint.yml similarity index 58% rename from .github/workflows/golangci-lint.yml rename to .github/workflows/_golangci-lint.yml index 85362dd..88dc298 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/_golangci-lint.yml @@ -8,8 +8,8 @@ jobs: name: run runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: go-version: '1.22' - - uses: golangci/golangci-lint-action@v3 + - uses: golangci/golangci-lint-action@v4 diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/_goreleaser.yml similarity index 72% rename from .github/workflows/goreleaser.yml rename to .github/workflows/_goreleaser.yml index 029654f..3c47e03 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/_goreleaser.yml @@ -11,11 +11,11 @@ jobs: name: release runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: go-version: '1.22' - - uses: goreleaser/goreleaser-action@v1 + - uses: goreleaser/goreleaser-action@v5 with: args: release --clean env: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3b5dd8b..291ea45 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,11 +10,11 @@ on: jobs: go-test: - uses: ./.github/workflows/go-test.yml + uses: ./.github/workflows/_go-test.yml golangci-lint: - uses: ./.github/workflows/golangci-lint.yml + uses: ./.github/workflows/_golangci-lint.yml goreleaser: needs: - go-test - golangci-lint - uses: ./.github/workflows/goreleaser.yml + uses: ./.github/workflows/_goreleaser.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9840676..aac8dd6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,6 +8,6 @@ on: jobs: go-test: - uses: ./.github/workflows/go-test.yml + uses: ./.github/workflows/_go-test.yml golangci-lint: - uses: ./.github/workflows/golangci-lint.yml + uses: ./.github/workflows/_golangci-lint.yml