diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..5b1e6ed --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,20 @@ +name: go-test + +on: + pull_request: + branches: + - master + +jobs: + build: + name: Run Go tests + runs-on: + - self-hosted + - medium + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version-file: 'go.mod' + - name: Test + run: go test ./... diff --git a/go.mod b/go.mod index e909343..000c41e 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/mesosphere/traefik-forward-auth -go 1.12 +go 1.13 require ( github.com/VividCortex/gohistogram v1.0.0 // indirect