Skip to content

Hotfix/stdio server #22

Hotfix/stdio server

Hotfix/stdio server #22

Workflow file for this run

name: Go Build & Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
name: Build & Test
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.18'
check-latest: true
- name: Check out code
uses: actions/checkout@v3
- name: Get dependencies
run: go mod download
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.18'
check-latest: true
- name: Check out code
uses: actions/checkout@v3
- name: Install golangci-lint
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.55.2
- name: Run golangci-lint
run: golangci-lint run --timeout=5m