Bump github.com/containers/image/v5 from 5.32.0 to 5.32.1 #7
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: Testing code - Pull Request | |
on: | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
jobs: | |
test-app: | |
name: Test Application | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- name: Run GolangCI-Lint | |
uses: golangci/golangci-lint-action@v6 | |
with: | |
version: v1.59 | |
- name: Test application | |
run: go test -v ./... | |
- name: Capture git tag | |
id: vars | |
run: | | |
echo "tag=$GITHUB_SHA" >> $GITHUB_OUTPUT | |
- name: Replace version in plugin.yaml | |
run: | | |
yq e ".version = \"${{ steps.vars.outputs.tag }}\"" plugin.yaml.tpl > plugin.yaml | |
- name: Assert with yq that the tag has changed | |
run: | | |
yq e ".version" plugin.yaml | grep -q "$GITHUB_SHA" | |
echo "Tag has been updated to $(yq e ".version" plugin.yaml)" | |
- name: Dry-run goreleaser application | |
uses: goreleaser/goreleaser-action@v6 | |
with: | |
distribution: goreleaser | |
version: "~> v2" | |
args: release --snapshot --skip=publish --clean |