Skip to content

chore: add ci workflows #1

chore: add ci workflows

chore: add ci workflows #1

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
tests:
name: Test
permissions:
contents: read
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04]
go: ["1.21.10", "1.22.3"]
steps:
- name: Setup Go
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version: ${{ matrix.go }}
- name: Code checkout
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: go mod download
env:
CGO_ENABLED: 0
run: |
go mod download
- name: go test
env:
CGO_ENABLED: 0
run: |
go test ./...
- name: go test -race
env:
CGO_ENABLED: 1
run: |
go test -race ./...