Initial CI/CD pipeline #3
3 changed files with 6 additions and 8 deletions
|
|
@ -6,7 +6,9 @@ on:
|
|||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: swift-latest
|
||||
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
|
||||
|
|
@ -15,7 +17,7 @@ jobs:
|
|||
run: swift format lint --recursive Sources/
|
||||
|
||||
flatpak-build:
|
||||
runs-on: flatpak-builder-lint
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ghcr.io/flathub/flatpak-builder-lint:latest
|
||||
options: --privileged --security-opt seccomp=unconfined --security-opt apparmor=unconfined
|
||||
|
|
@ -28,9 +30,5 @@ jobs:
|
|||
with:
|
||||
manifest-path: dev.bscubed.Luminate.json
|
||||
bundle: Luminate.flatpak
|
||||
cache-key: flatpak-pr-${{ forge.sha }}
|
||||
upload-artifact: false
|
||||
keep-build-dirs: true
|
||||
- name: Run tests
|
||||
run: |
|
||||
flatpak-builder --run flatpak_app dev.bscubed.Luminate.json swift test --enable-code-coverage
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ on:
|
|||
|
||||
jobs:
|
||||
label:
|
||||
runs-on: docker
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Label by branch prefix
|
||||
env:
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ jobs:
|
|||
with:
|
||||
manifest-path: dev.bscubed.Luminate.json
|
||||
bundle: Luminate.flatpak
|
||||
cache-key: flatpak-release
|
||||
cache-key: flatpak-builder-${arch}-${sha256(dev.bscubed.Luminate.json)}-release
|
||||
branch: stable
|
||||
repository-url: https://flathub.org/repo/flathub.flatpakrepo
|
||||
upload-artifact: false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue