-
-
Notifications
You must be signed in to change notification settings - Fork 13
51 lines (42 loc) · 1.33 KB
/
test-build-system.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
# This workflow will thoroughly test the build system
name: Complete build system test
on:
push:
branches: '**'
pull_request:
branches: '**'
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get install --no-install-recommends git make optipng gettext gnome-shell
- name: Check asset optimisation targets work
run: |
# Check all assets are space optimised
make compress COMPRESSLEVEL="-o0" "-j$(nproc)"
- name: Check translation generation works
run: |
make translations
git restore extension/po/
- name: Test extension builds from current state
run: |
make build
- name: Test extension is valid and able to be uploaded
run: |
make check
- name: Check no extra files have been committed or missed
run: |
# Clean up files (shouldn't have to do anything)
make clean
# Fail if any files generated by last step that haven't been committed
if [ ! -z "$(git status --porcelain)" ]; then exit 1; fi
- name: Check release workflow is functional
run: |
make release COMPRESSLEVEL="-o0" "-j$(nproc)"
- name: Test extension installs
run: |
make install