-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (38 loc) · 1023 Bytes
/
CI.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: CI Pull Request
on:
push:
branches:
- 'main'
pull_request:
env:
APP_ID: com.example.SuperDev2007.SomeApp
jobs:
# lint:
# name: Lint Check
# runs-on: ubuntu-latest
# container:
# image: valalang/lint
# steps:
# - name: Checkout repository
# uses: actions/checkout@v4
# - name: Lint
# run: io.elementary.vala-lint -d .
test-build:
name: Test Build
runs-on: ubuntu-latest
# needs: lint
container:
image: bilelmoussaoui/flatpak-github-actions:gnome-46
options: --privileged
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Replace patterns
run: sh setup-space.sh ${{ env.APP_ID }}
- name: Run tests and lint
uses: flatpak/flatpak-github-actions/flatpak-builder@v6
with:
bundle: ${{ env.APP_ID }}.flatpak
manifest-path: build-aux/flatpak/${{ env.APP_ID }}-Devel.json
# run-tests: true
cache-key: flatpak-builder-${{ github.sha }}