Skip to content

Commit

Permalink
Updated build system test workflow to test new targets
Browse files Browse the repository at this point in the history
  • Loading branch information
stuarthayhurst committed May 21, 2022
1 parent 33f6036 commit 9269fff
Showing 1 changed file with 25 additions and 6 deletions.
31 changes: 25 additions & 6 deletions .github/workflows/test-build-system.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,43 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get install --no-install-recommends git make optipng gettext gnome-shell
sudo apt-get install --no-install-recommends git make optipng gettext gnome-shell libglib2.0-bin
- name: Check assets are optimised and no extra files have been committed
run: |
# Check all assets are space optimised
make prune compress
# 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
make prune compress COMPRESSLEVEL="-o0"
- name: Check translation generation works
run: |
make translations
git restore po/
- name: Test extension builds from a clean slate
run: |
make build
- name: Test extension is valid and able to be uploaded
run: |
make check
- name: Check no extra files have been committed
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: |
#Fake gtk4-builder-tool to echo to avoid errors due to no gtk4 packages
echo "echo \$@" | sudo tee /usr/bin/gtk4-builder-tool; sudo chmod +x /usr/bin/gtk4-builder-tool
make release
- name: Test extension installs
run: |
make install

0 comments on commit 9269fff

Please sign in to comment.