Skip to content

Commit

Permalink
basic gha
Browse files Browse the repository at this point in the history
  • Loading branch information
sgsullivan committed Aug 4, 2022
1 parent 0b08431 commit aec09e6
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Unit Tests
on:
push:
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.19

- name: Compile
run: make build-only

- name: Run Unit Tests
run: make test
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ format:
clean:
rm -rf _exe/

build: format test
build: format test build-only

build-only:
go build -x -o _exe/befehl cmd/main/main.go

test:
Expand Down

0 comments on commit aec09e6

Please sign in to comment.