Skip to content

build(deps): Bump alpine from 3.19.1 to 3.20.1 #266

build(deps): Bump alpine from 3.19.1 to 3.20.1

build(deps): Bump alpine from 3.19.1 to 3.20.1 #266

Workflow file for this run

name: Test and build Go packages
on:
push:
paths-ignore:
- .gitignore
- action.yml
- go.*
- LICENSE
- README.md
pull_request:
types:
- opened
- synchronize
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- uses: actions/cache@v4
with:
path: |
~/.cache/golangci-lint
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- run: go test -race -coverprofile=coverage.out -covermode=atomic ./...
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.out
lint:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v4
- name: golangci-lint
uses: reviewdog/action-golangci-lint@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
golangci_lint_flags: --config=.golangci.yaml
level: warning
reporter: github-pr-review
filter_mode: nofilter
fail_on_error: true
build:
runs-on: ubuntu-latest
needs:
- test
- lint
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- uses: actions/cache@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- run: go build -a -o bin/pr-size ./cmd/gh-actions-pr-size
- uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: ${{ github.repository }}/gh-actions-pr-size
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: docker.pkg.github.com
no_push: true