Skip to content

example in README

example in README #7

Workflow file for this run

name: itertools
on:
push:
branches: ["main"]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go-version: [ 1.21 ]
name: Tests with Go ${{ matrix.go-version }}
steps:
- uses: actions/checkout@v3
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Build
run: go build -v ./...
- name: Test
run: go test -race -covermode=atomic -coverprofile=coverage.out -v ./...
- name: Upload coverage
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}