Skip to content

Merge pull request #25 from pfrest/dependabot/github_actions/master/a… #88

Merge pull request #25 from pfrest/dependabot/github_actions/master/a…

Merge pull request #25 from pfrest/dependabot/github_actions/master/a… #88

Workflow file for this run

name: Quality
on: [push]
jobs:
check_prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 20
- name: Install npm packages
run: npm install
- name: Check Prettier
run: npx prettier --check .
check_php_lint:
runs-on: ubuntu-latest
needs: ["check_prettier"]
strategy:
matrix:
PHP_VERSION: ["8.2"]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: "Setup PHP ${{ matrix.PHP_VERSION }}"
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # 2.37.0
with:
php-version: "${{ matrix.PHP_VERSION }}"
coverage: "none"
- name: "Run phplint"
run: |
curl -Ls https://github.com/overtrue/phplint/releases/download/9.0.3/phplint.phar -o /usr/local/bin/phplint
chmod +x /usr/local/bin/phplint
/usr/local/bin/phplint -vvv --no-cache
check_docker_build:
runs-on: ubuntu-latest
needs: ["check_php_lint"]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Build Docker Image
run: docker build -t mock-saml2-idp:dev .