Add test workflow

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2025-07-14 17:15:14 +02:00
parent 4817c6d92d
commit bd1492f4c0

View File

@@ -73,8 +73,35 @@ jobs:
steps:
- uses: "actions/checkout@v4"
- uses: "actions/setup-go@v5"
with:
go-version: 24
- uses: "actions/setup-node@v4"
with:
node-version: 22
- run: "npm ci"
- run: "make build"
test:
name: "test"
runs-on: "ubuntu-22.04"
permissions:
contents: "read"
steps:
- uses: "actions/checkout@v4"
- uses: "actions/setup-go@v5"
with:
go-version: stable
- uses: "actions/setup-node@v4"
with:
node-version: 22
- run: "npm ci"
- run: "make test"
- run: "make coverage-report"
- name: "Upload coverage reports"
uses: "actions/upload-artifact@v4"
with:
name: "coverage-reports"
path: |
coverage.out
coverage.html
retention-days: 30