checkpoint: add workflow for tests
Some checks failed
Tests / test (pull_request) Failing after 5s

This commit is contained in:
Dan Anglin 2024-08-17 16:35:27 +01:00
parent 009515ddb4
commit 72ab61e28b
Signed by: dananglin
GPG key ID: 0C1D44CFBEE68638
3 changed files with 28 additions and 0 deletions

View file

@ -0,0 +1,11 @@
---
name: "Testing"
description: "Performs unit and lint tests for Enbas with mage"
runs:
using: "docker"
image: "docker://golang:1.23.0-alpine"
env:
ENBAS_TEST_VERBOSE: "1"
ENBAS_TEST_COVER: "1"
pre-entrypoint: "go version"
entrypoint: "go run magefiles/main.go -v test"

View file

@ -0,0 +1,17 @@
---
name: Tests
on:
pull_request:
types:
- opened
- synchronize
jobs:
test:
runs-on: docker
steps:
- name: Checkout Repository
uses: https://code.forgejo.org/actions/checkout@v4
- name: Test
uses: ./forgejo/actions/tests