Skip to content

build(deps): bump github.com/stretchr/testify from 1.9.0 to 1.10.0 #250

build(deps): bump github.com/stretchr/testify from 1.9.0 to 1.10.0

build(deps): bump github.com/stretchr/testify from 1.9.0 to 1.10.0 #250

Workflow file for this run

name: main
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
if: github.event_name == 'push' && !contains(toJson(github.event.commits), '[ci skip]') && !contains(toJson(github.event.commits), '[skip ci]')
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: install golangci-lint
run: |
mkdir -p "$HOME/bin"
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b "$HOME/bin" v1.54.2
echo "$HOME/bin" >> $GITHUB_PATH
shell: bash # force windows to use git-bash for access to curl
- name: Install GoReleaser
# only need to lint goreleaser on one platform:
if: startsWith(runner.os, 'Linux')
uses: goreleaser/goreleaser-action@v6
with:
install-only: true
- run: make lint
shell: bash
- run: make test
shell: bash
release-test:
needs: [test]
# don't waste time running a goreleaser test build on main since we will run a full release:
if: github.ref != 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Install GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
install-only: true
- run: make snapshot
release:
needs: [test]
# only create a release on main builds:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: docker.io login
run: docker login docker.io -u joemiller -p ${{ secrets.DOCKERIO_TOKEN }}
- name: Unshallow
run: |
# fetch all tags and history so that goreleaser can generate a proper changelog
# and autotag can calculate the next version tag:
git fetch --tags --unshallow --prune
if [ $(git rev-parse --abbrev-ref HEAD) != "main" ]; then
# ensure a local 'main' branch exists for autotag to work correctly:
git branch --track main origin/main
fi
- name: Install GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
install-only: true
- name: run autotag to increment version
run: |
curl -sL https://git.io/autotag-install | sudo sh -s -- -b /usr/local/bin
autotag
- name: build and push release artifacts
env:
GITHUB_TOKEN: ${{ secrets.BREW_GITHUB_TOKEN }}
run: |
make deps
make release