ci: add workflow for Forgejo Actions #1

Manually merged
dananglin merged 1 commit from ci-add-forgejo-actions-workflow into main 2023-12-03 00:18:24 +00:00
2 changed files with 34 additions and 0 deletions
Showing only changes of commit cfb64d80aa - Show all commits

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 ./...