Skip to content

chore(deps): bump actions/setup-go from 4 to 5 #790

chore(deps): bump actions/setup-go from 4 to 5

chore(deps): bump actions/setup-go from 4 to 5 #790

Workflow file for this run

name: Main Workflow
on:
pull_request: {}
workflow_dispatch: {}
push:
branches:
- '*'
tags-ignore:
- 'v*'
paths-ignore:
- 'docs/*'
permissions:
contents: read
jobs:
go-versions:
name: Lookup go versions
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.versions.outputs.matrix }}
steps:
- uses: actions/checkout@v4
- uses: arnested/go-version-action@v1
id: versions
build:
name: Build Shoutrrr
runs-on: ubuntu-latest
needs: go-versions
strategy:
matrix:
version: ${{ fromJSON(needs.go-versions.outputs.matrix) }}
steps:
- name: Set up Go ${{ matrix.version }}
uses: actions/setup-go@v5
id: go
with:
go-version: ${{ matrix.version }}
check-latest: true
- name: Check out code
uses: actions/checkout@v4
- name: Build
run: CGO_ENABLED=0 go build -v .
- name: Test
run: CGO_ENABLED=0 go test -v -coverprofile=coverage.out -covermode=atomic ./...
- name: Publish coverage
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}