Skip to content

Add MIT License to the project #6

Add MIT License to the project

Add MIT License to the project #6

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Go ${{ matrix.go }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
go: 1.22.x
- os: ubuntu-latest
go: stable
- os: macos-latest
go: stable
- os: windows-latest
go: stable
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: ${{ matrix.go }}
cache: false
- name: Test
run: go test ./... ./example/...
- name: Test with race detector
if: matrix.os == 'ubuntu-latest' && matrix.go == 'stable'
run: go test -race ./... ./example/...
- name: Vet
if: matrix.os == 'ubuntu-latest' && matrix.go == 'stable'
run: go vet ./... ./example/...
- name: Check formatting
if: matrix.os == 'ubuntu-latest' && matrix.go == 'stable'
shell: bash
run: test -z "$(gofmt -l .)"