## Description Add Forgejo Actions CI pipeline with flatpak builds and tests. Closes #<!-- issue number --> ## Type of change - [ ] 🐛 Bug fix - [ ] ✨ New feature - [ ] ♻️ Refactor / code cleanup - [ ] 📖 Documentation - [x] 🔧 Dependencies / build tooling ## How was this tested? Verified CI pipeline runs successfully with flatpak builds and tests in Forgejo Actions. ## Checklist - [ ] I have read the [contributing guide](CONTRIBUTING.md) - [ ] My code follows the project's style guidelines - [ ] I have added or updated tests as needed - [ ] Documentation has been updated where applicable - [ ] All existing tests pass Pull request: (#3) ## Description Add Forgejo Actions CI pipeline with flatpak builds and tests. Closes #<!-- issue number --> ## Type of change - [ ] 🐛 Bug fix - [ ] ✨ New feature - [ ] ♻️ Refactor / code cleanup - [ ] 📖 Documentation - [x] 🔧 Dependencies / build tooling ## How was this tested? Verified CI pipeline runs successfully with flatpak builds and tests in Forgejo Actions. ## Checklist - [ ] I have read the [contributing guide](CONTRIBUTING.md) - [ ] My code follows the project's style guidelines - [ ] I have added or updated tests as needed - [ ] Documentation has been updated where applicable - [ ] All existing tests pass Co-authored-by: Brendan Szymanski <hello@bscubed.dev> Co-committed-by: Brendan Szymanski <hello@bscubed.dev>
34 lines
1 KiB
YAML
34 lines
1 KiB
YAML
name: PR Checks
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
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: ubuntu-latest
|
|
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
|
|
upload-artifact: false
|
|
keep-build-dirs: true
|