luminate-old/.forgejo/workflows/pr-checks.yml
Brendan Szymanski 99b1df16f6
Some checks failed
PR Checks / lint (pull_request) Successful in 11s
PR Checks / flatpak-build (pull_request) Failing after 1m53s
Add flathub remote manually
2026-06-22 00:47:52 -04:00

36 lines
1 KiB
YAML

name: PR Checks
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
lint:
runs-on: docker
container:
image: swift:6.3
steps:
- name: Install Node.js
run: apt-get update -qq && apt-get install -y -qq nodejs
- uses: actions/checkout@v4
- name: Lint
run: swift format lint --recursive Sources/
flatpak-build:
runs-on: docker
container:
image: ghcr.io/flathub/flatpak-builder-lint:latest
options: --privileged
steps:
- uses: actions/checkout@v4
- name: Add Flathub remote
run: |
flatpak remote-add --system --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
- uses: https://github.com/flatpak/flatpak-github-actions/flatpak-builder@v6.7
with:
manifest-path: dev.bscubed.Luminate.json
bundle: Luminate.flatpak
cache-key: flatpak-pr-${{ forge.sha }}
upload-artifact: false
state-dir: /tmp/flatpak-builder-state
repo-dir: /tmp/flatpak-builder-repo