ci: add workflow for Forgejo Actions #1
2 changed files with 34 additions and 0 deletions
20
.forgejo/workflows/workflow.yaml
Normal file
20
.forgejo/workflows/workflow.yaml
Normal 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
14
.github/workflows/workflow.yaml
vendored
Normal 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 ./...
|
Loading…
Reference in a new issue