Skip to content

Commit

Permalink
task: setup automated pipeline builds
Browse files Browse the repository at this point in the history
  • Loading branch information
cngJo committed Aug 2, 2022
1 parent 6897f9d commit 66446ff
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "Build"

on:
push:
branches:
- "main"
pull_request:
branches:
- "main"

jobs:
build:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '>=1.18.0'

- name: Install dependencies
run: |
go version
go install golang.org/x/lint/golint@latest
- name: Build
run: go build .

- name: Run Vet & Lint
run: |
go vet .
golint -set_exit_status=1 .

0 comments on commit 66446ff

Please sign in to comment.