summaryrefslogtreecommitdiff
path: root/.github/workflows/code_style.yml
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2021-09-10 16:05:04 +0200
committerEven Rouault <even.rouault@spatialys.com>2021-09-12 11:18:14 +0200
commit3d582dd8856bd9c8e3243407b61690263ed2ee48 (patch)
treec3045fe7f15163a0e04b72ce66d64afc88cfc7de /.github/workflows/code_style.yml
parent0c1962669858b1d67a6b8851ae0e8c4123a1c282 (diff)
Add github action workflows CI
Diffstat (limited to '.github/workflows/code_style.yml')
-rw-r--r--.github/workflows/code_style.yml26
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