34 lines
1 KiB
YAML
34 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 --security-opt seccomp=unconfined --security-opt apparmor=unconfined
|
|
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
|