Skip to content

bump actions/setup-go from 6 to 7 #94

bump actions/setup-go from 6 to 7

bump actions/setup-go from 6 to 7 #94

Workflow file for this run

name: CI
on:
pull_request:
branches:
- main
push:
branches: ["main"]
tags: "*"
workflow_dispatch:
jobs:
check-links:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Markup Link Checker (mlc)
uses: becheran/mlc@v1.2.0
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: codecov/codecov-action@v7
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v7
with:
go-version: "1.22"
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v9
with:
version: v2.9
args: --tests=false --timeout=10m
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v7
with:
go-version: "1.22"
- name: Test
run: go test ./... -json > report.json
- name: Upload test results
uses: actions/upload-artifact@v7
with:
name: test-results
path: report.json
- name: Report
uses: becheran/go-testreport@main
with:
input: report.json
release:
runs-on: ubuntu-latest
needs: [check-links, test]
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v7
with:
go-version: "1.22"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v7
with:
distribution: goreleaser
version: v1.23.0
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}