This commit is contained in:
parent
009515ddb4
commit
72ab61e28b
3 changed files with 28 additions and 0 deletions
11
.forgejo/actions/tests/action.yaml
Normal file
11
.forgejo/actions/tests/action.yaml
Normal 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"
|
17
.forgejo/workflows/Tests.yaml
Normal file
17
.forgejo/workflows/Tests.yaml
Normal 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
|
Loading…
Reference in a new issue