Skip to content

Merge pull request #34 from CodeRunRepeat/dependabot/go_modules/sampl… #29

Merge pull request #34 from CodeRunRepeat/dependabot/go_modules/sampl…

Merge pull request #34 from CodeRunRepeat/dependabot/go_modules/sampl… #29

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go-all
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Build
run: cd src && make build
- name: Staticcheck
uses: dominikh/[email protected]
with:
version: "2023.1"
min-go-version: 1.19
install-go: false
working-directory: ./src/client
- name: Test
run: cd src && make test
- name: Build samples
run: cd samples && make build
- name: Staticcheck samples
run: cd samples && make check