Something went wrong. Try again.
A collection of generic data structures in Go
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101name: CI
on: workflow_call: pull_request: push: branches: - main
concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} cancel-in-progress: true
permissions: {}
jobs: test: name: Test runs-on: ${{ matrix.os }} permissions: contents: read strategy: matrix: os: - ubuntu-latest - macos-latest - windows-latest
steps: - name: Checkout Code uses: actions/checkout@v4
- name: Set up Go uses: actions/setup-go@v5 with: go-version-file: go.mod
- name: Install tparse run: go install github.com/mfridman/tparse@latest
- name: Run Tests shell: bash # We get nice things like pipefail if this is set run: go test -race -json -cover -covermode=atomic ./... | tparse -format markdown >> $GITHUB_STEP_SUMMARY
cov: name: CodeCov runs-on: ubuntu-latest permissions: contents: read
steps: - name: Checkout Code uses: actions/checkout@v4
- name: Set up Go uses: actions/setup-go@v5 with: go-version-file: go.mod
- name: Run Tests run: go test -race -cover -covermode=atomic -coverprofile=./coverage.out ./...
- name: Coverage uses: codecov/codecov-action@v5 with: files: ./coverage.out token: ${{ secrets.CODECOV_TOKEN }}
lint: name: Lint runs-on: ubuntu-latest permissions: contents: read
steps: - name: Checkout Code uses: actions/checkout@v4
- name: Set up Go uses: actions/setup-go@v5 with: go-version-file: go.mod
- name: Run Linting uses: golangci/golangci-lint-action@v6 with: version: latest
typos: name: Typos runs-on: ubuntu-latest permissions: contents: read
steps: - name: Checkout Code uses: actions/checkout@v4
- name: Check for Typos uses: crate-ci/typos@v1.28.3