diff --git a/.github/workflows/go-tests.yml b/.github/workflows/go-tests.yml new file mode 100644 index 00000000..1ed634be --- /dev/null +++ b/.github/workflows/go-tests.yml @@ -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 diff --git a/README.md b/README.md index f36a20e9..f5d8f8ef 100644 --- a/README.md +++ b/README.md @@ -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.