From b453cd551c9eaaebea1913df636f6ededd49e532 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20BENO=C3=8ET?= Date: Fri, 26 Jul 2024 13:47:49 +0200 Subject: [PATCH] chore: add actions that run the tests and linter --- .forgejo/workflows/tests.yaml | 65 +++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 .forgejo/workflows/tests.yaml diff --git a/.forgejo/workflows/tests.yaml b/.forgejo/workflows/tests.yaml new file mode 100644 index 0000000..e71b24d --- /dev/null +++ b/.forgejo/workflows/tests.yaml @@ -0,0 +1,65 @@ +name: Run tests and linters + +on: + push: + branches: [master] + pull_request: + +jobs: + + test: + runs-on: debian-12 + steps: + - + name: Checkout repo + uses: actions/checkout@v4 + - + name: Setup Go + uses: actions/setup-go@v5 + with: + go-version-file: go.mod + cache-dependency-path: | + go.sum + tools/go.sum + - + name: Run tests + run: | + make test + + lint: + runs-on: debian-12 + steps: + - + name: Checkout repo + uses: actions/checkout@v4 + - + name: Setup Go + uses: actions/setup-go@v5 + with: + go-version-file: go.mod + cache-dependency-path: | + go.sum + tools/go.sum + - + name: Run linters + run: | + make lint + + build: + runs-on: debian-12 + steps: + - + name: Checkout repo + uses: actions/checkout@v4 + - + name: Setup Go + uses: actions/setup-go@v5 + with: + go-version-file: go.mod + cache-dependency-path: | + go.sum + tools/go.sum + - + name: Run tests + run: | + make test