Skip to content

Feature/add thread

Feature/add thread #15

Workflow file for this run

name: Build and Test
on:
push:
branches:
- master
- develop
pull_request:
branches:
- "**"
jobs:
build:
runs-on: ubuntu-22.04
strategy:
matrix:
go: [ '1.19', '1.20', '1.21' ]
name: Go ${{ matrix.go }} sample
steps:
- name: Setup go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go }}
- uses: actions/checkout@v2
- name: Cache Go modules
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Tests
run: go test ./...