initial tests workflows
This commit is contained in:
@@ -0,0 +1,25 @@
|
|||||||
|
name: Tests
|
||||||
|
run-name: tests on ${{ gitea.ref }}
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Go-Tests:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- run: echo "🧑🔬 $ {{ gitea.actor }} pushed branch ${{ gitea.ref }} ...0️0️1️0️1️0️1️0️ ... beginning tests"
|
||||||
|
- name: Check out repository code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
|
||||||
|
- run: echo "🖥️ The workflow is now ready to test your go code on the runner."
|
||||||
|
- name: Setup golang environment
|
||||||
|
uses: actions/setup-go
|
||||||
|
with:
|
||||||
|
go-version: 'stable'
|
||||||
|
check-latest: true
|
||||||
|
token: ${{ gitea.token }}
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
- name: Run go tests
|
||||||
|
run: |
|
||||||
|
go test ./...
|
||||||
|
- run: echo "🍏 This job's status is ${{ job.status }}."
|
||||||
Reference in New Issue
Block a user