Files
siege/.gitea/workflows/pr.yaml
T
Sagent 02a3583d7f
PR / lint (pull_request) Failing after 3s
PR / test (pull_request) Has been skipped
fix: convert all workflows to standard htpasswd pattern (no artifacts)
- Removed artifact upload/download steps from all workflows
- Merged build+test into single 'test' job, eliminating artifact dependency
- Removed ChristopherHX/gitea-upload-artifact and download-artifact actions
- Builds image directly with docker build and runs tests in same job
- Push job rebuilds independently with docker/build-push-action
- pr.yaml: lint → test only (no push/version bump)
- tag.yaml: lint → test → push with semver tags
- cron.yaml: keeps original '0 0 * * *' schedule
- All pinned SHAs preserved
2026-06-13 21:43:20 +00:00

26 lines
746 B
YAML

name: PR
on:
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- name: Hadolint
uses: hadolint/hadolint-action@2332a7b74a6de0dda2e2221d576162eba76ba5e5 # v3.3.0
test:
runs-on: ubuntu-latest
needs: lint
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@d7f5e7f509e45cec5cec5c76c4d5afdd7de93df5 # v4
- name: Build image
run: docker build -t ci-image:${{ github.sha }} .
- name: Run tests
run: bash tests/test.sh ci-image:${{ github.sha }}