Add payor information for FHIR Coverage Endpoint (#7685)
[openemr.git] / .github / workflows / styling.yml
blobf1cf267e335b5aae9ee85bd8b56476cfbdecd387
1 name: Styling
3 on:
4   push:
5     branches: [ master ]
6   pull_request:
7     branches: [ master ]
9 permissions:
10   contents: read
12 jobs:
14   php_styling:
15     runs-on: ubuntu-22.04
16     name: PHP
17     steps:
18       - uses: actions/checkout@v3
20       - name: Install PHP
21         uses: shivammathur/setup-php@v2
22         with:
23           php-version: '8.3'
25       - name: Report PHP Version
26         run: php -v
28       - name: Install php_codesniffer
29         run: |
30           failTest=false
31           composer global require "squizlabs/php_codesniffer=3.*" || failTest=true
32           if $failTest; then
33             exit 1
34           fi
36       - name: Check PHP Styling
37         run: |
38           failTest=false
39           $HOME/.composer/vendor/bin/phpcs -p -n --extensions=php,inc --report-width=120 --standard=ci/phpcs.xml --report=full . || failTest=true
40           if $failTest; then
41             exit 1
42           fi
44   css_styling:
45     runs-on: ubuntu-22.04
46     name: CSS
47     steps:
48       - uses: actions/checkout@v3
50       - name: Install npm package
51         uses: actions/setup-node@v3
52         with:
53           node-version: '20'
55       - name: npm install
56         run: |
57           failTest=false
58           npm install || failTest=true
59           if $failTest; then
60             exit 1
61           fi
63       - name: Check CSS Styling
64         run: |
65           failTest=false
66           npm run stylelint || failTest=true
67           if $failTest; then
68             exit 1
69           fi
71   js_linting:
72     runs-on: ubuntu-22.04
73     name: JS
74     steps:
75       - uses: actions/checkout@v3
77       - name: Install npm package
78         uses: actions/setup-node@v3
79         with:
80           node-version: '20'
82       - name: npm install
83         run: |
84           failTest=false
85           npm install || failTest=true
86           if $failTest; then
87             exit 1
88           fi
90       - name: Check JS Linting
91         run: |
92           failTest=false
93           npm run lint:js || failTest=true
94           if $failTest; then
95             exit 1
96           fi