Skip to content

chore(deps): bump the all group across 1 directory with 3 updates #131

chore(deps): bump the all group across 1 directory with 3 updates

chore(deps): bump the all group across 1 directory with 3 updates #131

Workflow file for this run

# Source: https://github.com/actions/starter-workflows/blob/main/ci/go.yml
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: read
jobs:
# Test golangci-lint for go-version define in go.mod
golangci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac #v4.0.0
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 #v5.0.1
with:
go-version-file: go.mod
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@a4f60bb28d35aeee14e6880718e0c85ff1882e64 #v6.0.1
with:
version: latest
only-new-issues: true
# Test with EPUBCheck and send test coverage
test-epubcheck:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
# This needs to come after the checkout, which wipes the working directory
- name: Download EPUBCheck
run: |
# Download the latest version of EPUBCheck
wget $(curl -Ls -H "Accept: application/vnd.github.v3+json" 'https://api.github.com/repos/IDPF/epubcheck/releases?per_page=1' | jq '.[0].assets[0].browser_download_url' -r)
unzip epubcheck-*.zip
- name: Set up Go
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version-file: ./go.mod
- name: Build
run: go build -v ./...
- name: Test
run: go test -v -covermode=atomic -coverprofile=coverage.out ./...
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@125fc84a9a348dbcf27191600683ec096ec9021c # 4.4.1
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
# Test Mac and Windows with the latest version of Go
test-mac-windows:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest]
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: Set up Go
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version-file: ./go.mod
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...