File: code_style.yml

package info (click to toggle)
openjpeg2 2.5.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,580 kB
  • sloc: ansic: 150,774; cpp: 7,019; java: 1,996; sh: 615; python: 198; makefile: 70
file content (26 lines) | stat: -rw-r--r-- 664 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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@v4
        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