ci: add workflows for both Actions
All checks were successful
/ test (pull_request) Successful in 25s

- add a workflow for Forgejo Actions
- add a workflow for GitHub Actions
This commit is contained in:
Dan Anglin 2023-12-03 00:14:40 +00:00
parent 01118b683b
commit cfb64d80aa
Signed by: dananglin
GPG key ID: 0C1D44CFBEE68638
2 changed files with 34 additions and 0 deletions

View file

@ -0,0 +1,20 @@
---
on:
pull_request:
types:
- opened
- reopened
- synchronize
jobs:
test:
runs-on: docker
steps:
- name: Checkout Repository
uses: https://code.forgejo.org/actions/checkout@v3
- name: Setup Go
uses: https://code.forgejo.org/actions/setup-go@v3
with:
go-version: '1.21'
- name: Test
run: go test -v ./...

14
.github/workflows/workflow.yaml vendored Normal file
View file

@ -0,0 +1,14 @@
---
name: test
on:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
- uses: actions/checkout@v3
- run: go test -v ./...