Dan Anglin
155dab0918
Changes: - Changed README from Markdown to Asciidoc - Updated go.mod and go.sum - Updated magefiles for CI - Added workflow for Forgejo Actions
37 lines
827 B
YAML
37 lines
827 B
YAML
---
|
|
on:
|
|
pull_request:
|
|
types:
|
|
- opened
|
|
- reopened
|
|
- synchronize
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: docker
|
|
env:
|
|
PELICAN_TEST_VERBOSE: "1"
|
|
PELICAN_TEST_COVER: "1"
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: https://code.forgejo.org/actions/checkout@v3
|
|
- name: Setup Go
|
|
uses: https://code.forgejo.org/actions/setup-go@v4
|
|
with:
|
|
go-version: '1.21'
|
|
- name: Test
|
|
run: go run magefiles/main.go -v test
|
|
|
|
lint:
|
|
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@v4
|
|
with:
|
|
go-version: '1.21'
|
|
- name: Lint
|
|
uses: https://github.com/golangci/golangci-lint-action@v3
|
|
with:
|
|
version: v1.54
|