Skip to content

Commit

Permalink
Merge pull request #8 from mihaelabalutoiu/add-go-tests-github-workflow
Browse files Browse the repository at this point in the history
Add go tests `Github workflow`
  • Loading branch information
gabriel-samfira committed Sep 1, 2023
2 parents 298dec8 + ad05fbc commit d1fd22f
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/go-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Go Tests

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

jobs:
go-tests:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Golang
uses: actions/setup-go@v3
with:
go-version-file: go.mod

- run: go version

- name: Run GARM Go Tests
run: make go-test
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
SHELL := bash

GO_PACKAGES?=$(shell (go list ./... | grep -v 'vendor'))

.PHONY: go-test

go-test:
go test $(GO_PACKAGES) -v $(TEST_ARGS) -timeout=15m -parallel=4

0 comments on commit d1fd22f

Please sign in to comment.