Add Go Tests GitHub workflow

Signed-off-by: Ionut Balutoiu <ibalutoiu@cloudbasesolutions.com>
This commit is contained in:
Ionut Balutoiu 2022-09-07 16:14:54 +03:00
parent 8f29f90488
commit 30c1510967
2 changed files with 29 additions and 0 deletions

27
.github/workflows/go-tests.yml vendored Normal file
View file

@ -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 test

View file

@ -1,5 +1,7 @@
# GitHub Actions Runners Manager (garm)
![Go Tests](https://github.com/cloudbase/garm/actions/workflows/go-tests.yml/badge.svg)
Welcome to garm!
Garm enables you to create and automatically maintain pools of [self-hosted GitHub runners](https://docs.github.com/en/actions/hosting-your-own-runners/about-self-hosted-runners), with autoscaling that can be used inside your github workflow runs.