Files
wanderer/.github/workflows/go.yml
dependabot[bot] c53ead9bcc Bump actions/checkout from 6 to 7 (#1086)
Bumps [actions/checkout](https://github.com/actions/checkout) from 6 to 7.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Flomp <Flomp@users.noreply.github.com>
2026-07-01 09:25:55 +02:00

47 lines
1.0 KiB
YAML

name: Go
on:
push:
branches: [ main ]
paths:
- '.github/**'
- 'db/**'
- 'plugins/**'
- 'Makefile'
pull_request:
paths:
- '.github/**'
- 'db/**'
- 'plugins/**'
- 'Makefile'
jobs:
db-test:
runs-on: ubuntu-latest
env:
TINYGO_VERSION: '0.39.0'
steps:
- uses: actions/checkout@v7
- uses: actions/setup-go@v6
with:
go-version: '1.25'
- name: Install TinyGo
run: |
curl -fsSL "https://github.com/tinygo-org/tinygo/releases/download/v${TINYGO_VERSION}/tinygo_${TINYGO_VERSION}_amd64.deb" -o /tmp/tinygo.deb
sudo dpkg -i /tmp/tinygo.deb
tinygo version
- run: make db-fmt
- name: Ensure formatting
run: |
if [ -n "$(gofmt -l .)" ]; then
echo "Go files are not formatted"
exit 1
fi
git diff --exit-code
working-directory: db
- run: make db-vet
- run: make db-test
- run: make plugins-test
- run: make plugins-build