Bump golang.org/x/crypto from 0.23.0 to 0.26.0 #95
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
on: [push, pull_request] | |
name: CI | |
jobs: | |
# ================ | |
# TEST JOB | |
# runs on every push and PR | |
# runs 2x3 times (see matrix) | |
# ================ | |
test: | |
name: Test | |
strategy: | |
matrix: | |
go-version: [1.21.x] | |
platform: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Build | |
run: go build -v -o /dev/null . | |
- name: Test | |
run: go test -v ./... | |
# ================ | |
# RELEASE JOBS | |
# runs after a success test | |
# only runs on push "v*" tag | |
# ================ | |
release_binaries: | |
permissions: | |
contents: write | |
pull-requests: write | |
repository-projects: write | |
name: Release Binaries | |
needs: test | |
if: startsWith(github.ref, 'refs/tags/v') | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: goreleaser | |
if: success() | |
uses: docker://goreleaser/goreleaser:latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.TOKEN }} | |
with: | |
args: release --verbose --config .github/goreleaser.yml |