-
-
Notifications
You must be signed in to change notification settings - Fork 15
83 lines (62 loc) · 1.78 KB
/
CI-PR.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: CI Pull Request
on:
pull_request:
permissions:
contents: read
pull-requests: read
jobs:
lint-vala:
name: Lint vala files
runs-on: ubuntu-latest
container:
image: valalang/lint
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Lint Vala
run: io.elementary.vala-lint -d . -c vala-lint.conf
lint-blp:
name: Lint blueprint ui files
runs-on: ubuntu-latest
needs: lint-vala
container:
image: ubuntu:latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Update apt cache
run: apt-get update
- name: Install blueprint-compiler Blueptint
run: apt-get install -y blueprint-compiler
- name: Lint Blueprint
run: blueprint-compiler format -s 2 data/ui/*.blp
checkers:
name: Run checkers
runs-on: ubuntu-latest
needs: lint-blp
container:
image: ubuntu:latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
# - name: Run indentation checker
# run: python3 .checkers/indentation_checker.py
# - name: Run empty lines checker
# run: python3 .checkers/empty_lines_checker.py
test-build:
name: Test Build
runs-on: ubuntu-latest
needs: checkers
container:
image: bilelmoussaoui/flatpak-github-actions:gnome-nightly
options: --privileged
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run tests and lint
uses: flatpak/flatpak-github-actions/flatpak-builder@v6
with:
bundle: cassette.flatpak
manifest-path: build-aux/flatpak/nightly/io.github.Rirusha.Cassette-Devel.json
run-tests: true
cache-key: flatpak-builder-${{ github.sha }}