Skip to content

ci: update actions/checkout action to v5 (#66) #304

ci: update actions/checkout action to v5 (#66)

ci: update actions/checkout action to v5 (#66) #304

Workflow file for this run

name: Test
on:
push:
branches:
- master
paths:
- ".github/workflows/test.yaml"
- "**/go.mod"
- "**/go.sum"
- "Taskfile.yaml"
- "**.go"
- "**.go.json"
pull_request:
branches:
- master
paths:
- ".github/workflows/test.yaml"
- "**/go.mod"
- "**/go.sum"
- "Taskfile.yaml"
- "**.go"
- "**.go.json"
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go_version: ["~1.20", "~1.21", "~1.22", "~1.23", "~1.24"]
steps:
- uses: actions/checkout@v5
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: "${{ matrix.go_version }}"
cache-dependency-path: "**/*.sum"
- run: go test '-coverpkg=github.com/trim21/go-phpserialize/...' -covermode=atomic -coverprofile=coverage.out -count=1 ./...
working-directory: tests
- uses: codecov/codecov-action@v5
with:
files: tests/coverage.out
token: ${{ secrets.CODECOV_TOKEN }}