17f0297c1a
The CI scripts were using a PPA to get a backported version of uncrustify on Ubuntu 20.04. However, this causes CI to intermittently fail due to connection issues to launchpad.net or the key server. Ubuntu 22.04 has a newer version of uncrustify removing the need for the PPA. Ubuntu 22.04 is now in beta on GitHub actions, so it can be used. Signed-off-by: David Lechner <david@pybricks.com>
17 lines
416 B
YAML
17 lines
416 B
YAML
name: Check code formatting
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-python@v1
|
|
- name: Install packages
|
|
run: source tools/ci.sh && ci_code_formatting_setup
|
|
- name: Run code formatting
|
|
run: source tools/ci.sh && ci_code_formatting_run
|
|
- name: Check code formatting
|
|
run: git diff --exit-code
|