Skip to content

Upgrade GitHub actions/checkout from 4 to 5 (#104) #132

Upgrade GitHub actions/checkout from 4 to 5 (#104)

Upgrade GitHub actions/checkout from 4 to 5 (#104) #132

Workflow file for this run

name: Go
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
go-version: [1.23.x, 1.24.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
cache: false
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v5
- name: Get dependencies
run: |
go get -v -t -d ./...
- name: Build
run: go build -v .
- name: Checkout test XSD
uses: actions/checkout@v5
with:
repository: xuri/xsd
path: data
- name: Test
run: go test -v -timeout 60m -coverprofile='coverage.txt' -covermode=atomic ./
- name: Codecov
uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: coverage.txt
flags: unittests
name: codecov-umbrella