Merge pull request #1516 from stweil/actions
[openjpeg.git] / .github / workflows / code_style.yml
1 name: Code Style
2
3 on: [push, pull_request, workflow_dispatch]
4
5 jobs:
6   code_style:
7     runs-on: ubuntu-latest
8     if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')"
9     steps:
10       - name: Checkout
11         uses: actions/checkout@v4
12         with:
13             fetch-depth: 0
14
15       - name: Install Requirements
16         run: |
17           sudo apt update
18           sudo apt install -y gcc g++ flip
19
20       - name: Run check
21         run: |
22             ./tools/travis-ci/install.sh
23             ./tools/travis-ci/run.sh
24         env:
25             OPJ_CI_CHECK_STYLE: 1
26             OPJ_CI_SKIP_TESTS: 1