diff --git a/.forgejo/workflows/linters.yml b/.forgejo/workflows/tests.yml similarity index 51% rename from .forgejo/workflows/linters.yml rename to .forgejo/workflows/tests.yml index 96b729b5..e41f9a19 100644 --- a/.forgejo/workflows/linters.yml +++ b/.forgejo/workflows/tests.yml @@ -1,4 +1,4 @@ -name: Linters +name: Tests and linters on: [pull_request] jobs: @@ -17,4 +17,20 @@ jobs: - name: golangci-lint uses: https://github.com/golangci/golangci-lint-action@v3 with: - version: latest \ No newline at end of file + version: latest + + tests: + name: Tests + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: '1.19' + cache: true + + - name: Run tests + run: make test + \ No newline at end of file diff --git a/Makefile b/Makefile index 2eac50f0..2d9b5a31 100644 --- a/Makefile +++ b/Makefile @@ -26,8 +26,9 @@ image: @echo Version: $(VERSION) docker build -t $(LEGO_IMAGE) . -test: clean - go test -v -cover ./... +test: + @echo "⇒ Running go test" + @go test ./... -count=1 e2e: clean LEGO_E2E_TESTS=local go test -count=1 -v ./e2e/...