Skip to content

chore: prepare release v1.0.3 (#24) #60

chore: prepare release v1.0.3 (#24)

chore: prepare release v1.0.3 (#24) #60

Workflow file for this run

name: Test
on:
push:
branches:
- "main"
pull_request:
paths:
- '**.go'
- 'go.mod'
- 'go.sum'
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: latest
unit-test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.18
- name: Checkout
uses: actions/checkout@v2
- name: Run unit tests
run: go test -v ./...
run-example:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.18
- name: Checkout
uses: actions/checkout@v2
- name: Build example app
run: go build -o example.bin ./example/example.go
- name: Run example app
run: ./example.bin