Skip to content

Commit

Permalink
Create build-makefile.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
HansenChristoffer authored Mar 23, 2024
1 parent 95fbaab commit 1623eed
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build-makefile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Go Build and Test

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build-and-test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Extract Go version from go.mod
run: echo "GO_VERSION=$(grep 'go ' go.mod | awk '{print $2}')" >> $GITHUB_ENV

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}

- name: Check formatting with Make
run: make fmt-check

- name: Vet with Make
run: make vet

- name: Build with Make
run: make release

- name: Test with Make
run: make test

0 comments on commit 1623eed

Please sign in to comment.