Files
dttmr-api/.gitea/workflows/pr-checks.yml
T
robin c4ce8e66b6
PR Checks / lint-test-and-build (pull_request) Successful in 3m7s
fix: removed unused packages from 'Install system dependencies' step
2026-09-09 17:13:17 +02:00

40 lines
827 B
YAML

name: PR Checks
on:
pull_request:
branches:
- main
jobs:
lint-test-and-build:
runs-on: ubuntu-latest
container:
image: golang:1.27-bookworm
steps:
- name: Install system dependencies
run: |
apt-get update && apt-get install -y --no-install-recommends curl
curl -fsSL https://deb.nodesource.com/setup_24.x | bash -
apt-get install -y nodejs
- name: Checkout
uses: actions/checkout@v4
- name: Lint
run: make lint
- name: Check formatting
run: |
unformatted=$(gofmt -l .)
if [ -n "$unformatted" ]; then
echo "Not gofmt'd:"
echo "$unformatted"
exit 1
fi
- name: Test
run: make test
- name: Build
run: make build