Skip to content

Commit

Permalink
chore(actions): added github actions config file
Browse files Browse the repository at this point in the history
  • Loading branch information
breadrock1 committed May 28, 2024
1 parent f525ae8 commit d2e8453
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Github Actions

on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up Golang
uses: actions/setup-go@v3
with:
go-version: ~1.19

- name: Check out code
uses: actions/checkout@v3

- name: Build binary
run: make build
working-directory: .

tests:
runs-on: ubuntu-latest
needs: [build]
steps:
- name: Set up Golang
uses: actions/setup-go@v3
with:
go-version: ^1.19

- name: Check out code
uses: actions/checkout@v3

- name: Unit tests
run: go test -v -count=1 -race -timeout=1m ./...
working-directory: .

lint:
runs-on: ubuntu-latest
needs: [build]
steps:
- name: Set up Golang
uses: actions/setup-go@v3
with:
go-version: ~1.19

- name: Check out code
uses: actions/checkout@v3

- name: Linters
uses: golangci/golangci-lint-action@v3
with:
version: v1.50.1
working-directory: .

0 comments on commit d2e8453

Please sign in to comment.