diff --git a/.github/workflows/image.yml b/.github/workflows/build.yml similarity index 98% rename from .github/workflows/image.yml rename to .github/workflows/build.yml index c0ded43..a0bd780 100644 --- a/.github/workflows/image.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: image +name: Build image on: push: diff --git a/.github/workflows/golanglint-ci.yml b/.github/workflows/lint.yml similarity index 76% rename from .github/workflows/golanglint-ci.yml rename to .github/workflows/lint.yml index addeff0..e0a6a60 100644 --- a/.github/workflows/golanglint-ci.yml +++ b/.github/workflows/lint.yml @@ -4,17 +4,17 @@ on: push: pull_request: types: [opened, reopened] + jobs: golangci: name: lint runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: - go-version: '1.22' - cache: false + go-version: stable + - name: golangci-lint uses: golangci/golangci-lint-action@v6 - with: - version: v1.54 \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index aa5355e..8de314f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: goreleaser +name: Release on tag on: push: @@ -15,20 +15,20 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + - run: git fetch --force --tags + - uses: actions/setup-go@v5 with: go-version: stable + - uses: goreleaser/goreleaser-action@v6 with: - distribution: goreleaser - version: latest args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + helm-release: - permissions: - contents: write runs-on: ubuntu-latest steps: - name: Checkout @@ -46,7 +46,5 @@ jobs: - name: Run chart-releaser uses: helm/chart-releaser-action@v1.6.0 - with: - charts_dir: charts env: CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d7c5e75..b7815e1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,6 +4,7 @@ on: push: pull_request: types: [opened, reopened] + jobs: build: runs-on: ubuntu-latest @@ -11,8 +12,10 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 2 + - uses: actions/setup-go@v5 with: - go-version: '1.22' + go-version: stable + - name: Run tests - run: go test -v ./... \ No newline at end of file + run: go test -v ./...