Files
kestrelos/.gitea/workflows/pr.yml
Madison Grubb 60304c09da
Some checks failed
PR / docker-build (pull_request) Successful in 56s
PR / install (pull_request) Successful in 1m12s
PR / test (pull_request) Failing after 15s
PR / lint (pull_request) Failing after 26s
PR / e2e (pull_request) Failing after 6m10s
cleanup ci stages
2026-03-04 14:16:25 -05:00

116 lines
2.6 KiB
YAML

name: PR
on:
pull_request:
jobs:
install:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: "24"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Upload node_modules
uses: https://gitea.com/actions/gitea-upload-artifact@main
with:
name: node-modules
path: node_modules/
lint:
runs-on: ubuntu-latest
needs: install
steps:
- uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: "24"
cache: "npm"
- name: Restore node_modules
uses: https://github.com/ChristopherHX/gitea-download-artifact@main
with:
name: node-modules
- name: Run lint
run: npm run lint
test:
runs-on: ubuntu-latest
needs: install
steps:
- uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: "24"
cache: "npm"
- name: Restore node_modules
uses: https://github.com/ChristopherHX/gitea-download-artifact@main
with:
name: node-modules
- name: Run tests
run: npm run test
e2e:
runs-on: ubuntu-latest
needs: install
steps:
- uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: "24"
cache: "npm"
- name: Restore node_modules
uses: https://github.com/ChristopherHX/gitea-download-artifact@main
with:
name: node-modules
- name: Install Playwright browsers
run: npx playwright install --with-deps chromium
- name: Generate dev cert
run: ./scripts/gen-dev-cert.sh
- name: Run e2e tests
run: npm run test:e2e
env:
NODE_TLS_REJECT_UNAUTHORIZED: "0"
docker-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set Docker image tag
id: image
run: |
REGISTRY="${GITHUB_SERVER_URL#https://}"
REGISTRY="${REGISTRY#http://}"
echo "tag=${REGISTRY}/${{ github.repository }}:latest" >> $GITHUB_OUTPUT
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build (dry run)
uses: docker/build-push-action@v6
with:
context: .
push: false
tags: ${{ steps.image.outputs.tag }}