diff options
Diffstat (limited to '.github/workflows/code_style.yml')
| -rw-r--r-- | .github/workflows/code_style.yml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/.github/workflows/code_style.yml b/.github/workflows/code_style.yml new file mode 100644 index 00000000..bd09e5e8 --- /dev/null +++ b/.github/workflows/code_style.yml @@ -0,0 +1,26 @@ +name: Code Style + +on: [push, pull_request, workflow_dispatch] + +jobs: + code_style: + runs-on: ubuntu-latest + if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')" + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Install Requirements + run: | + sudo apt update + sudo apt install -y gcc g++ flip + + - name: Run check + run: | + ./tools/travis-ci/install.sh + ./tools/travis-ci/run.sh + env: + OPJ_CI_CHECK_STYLE: 1 + OPJ_CI_SKIP_TESTS: 1 |
