Skip to content

chore: move main.go into the root of the repository #11

chore: move main.go into the root of the repository

chore: move main.go into the root of the repository #11

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04]
go: ["1.21.10", "1.22.3"]
permissions:
contents: read
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 $(go list ./... | grep -v /e2e)
- name: go test -race
env:
CGO_ENABLED: 1
run: |
go test -race $(go list ./... | grep -v /e2e)