Skip to content

Step 2: basisGradient, CatmullRomGradient, GradientBuilder #123

Step 2: basisGradient, CatmullRomGradient, GradientBuilder

Step 2: basisGradient, CatmullRomGradient, GradientBuilder #123

Workflow file for this run

name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: './go.mod'
- name: Build
run: go build -v .
- name: Test
run: go test -v -coverprofile coverage.out && go tool cover -html coverage.out -o coverage.html
- name: Format
if: matrix.os == 'ubuntu-latest'
run: if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then exit 1; fi
- name: Upload coverage to Codecov
if: matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v3