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