fix(deps): update module github.com/aws/aws-sdk-go to v1.44.314 #159
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: CI | |
on: | |
pull_request: | |
branches: | |
- main | |
- master | |
push: | |
branches: | |
- main | |
- master | |
tags: | |
- v* | |
env: | |
CGO_ENABLED: '0' | |
# renovate: datasource=github-releases depName=golangci/golangci-lint versioning=semver-coerced | |
GOLANGCI_LINT_VERSION: "v1.53.3" | |
# renovate: datasource=github-releases depName=goreleaser/goreleaser versioning=semver-coerced | |
GORELEASER_VERSION: "v1.19.2" | |
jobs: | |
go: | |
name: Go | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: 'go.mod' | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: ${{ env.GOLANGCI_LINT_VERSION }} | |
- name: Download dependencies | |
run: go mod download | |
- name: Verify dependencies | |
run: go mod verify | |
- name: Run Generators | |
run: go generate -v ./... | |
- name: Check for modified files | |
run: | | |
if [[ $(git status --porcelain) != '' ]]; then | |
git --no-pager diff | |
echo "run go generate ./... and commit changes" | |
exit 1 | |
fi | |
- name: Test | |
run: go test -v ./... | |
- name: Clean | |
run: | | |
git clean -ffdx | |
git reset --hard HEAD | |
- name: GoReleaser (Snapshot) | |
if: "!startsWith(github.ref, 'refs/tags/')" | |
uses: goreleaser/goreleaser-action@v4 | |
with: | |
args: release --snapshot --clean | |
version: ${{ env.GORELEASER_VERSION }} | |
- name: Upload Snapshot | |
if: "!startsWith(github.ref, 'refs/tags/')" | |
uses: actions/upload-artifact@v3 | |
with: | |
name: cassandrabackup | |
path: dist/* | |
if-no-files-found: error | |
- name: Unshallow | |
if: startsWith(github.ref, 'refs/tags/') | |
run: git fetch --prune --unshallow | |
- name: GoReleaser (Release) | |
uses: goreleaser/goreleaser-action@v4 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
version: ${{ env.GORELEASER_VERSION }} | |
args: release --clean | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |