fix tests

This commit is contained in:
Dennis Eichhorn 2023-09-24 23:20:28 +00:00
parent 1364083860
commit e676fd4f19

View File

@ -121,28 +121,6 @@ jobs:
uses: actions/checkout@main
with:
fetch-depth: 1
- name: Checkout Build Repository
uses: actions/checkout@main
with:
fetch-depth: 1
ref: develop
repository: Karaka-Management/Build
path: Build
- name: Checkout Resource Repository
uses: actions/checkout@main
with:
fetch-depth: 1
ref: develop
repository: Karaka-Management/Resources
path: Resources
- name: Checkout phpOMS Repository
uses: actions/checkout@main
with:
fetch-depth: 1
ref: develop
repository: Karaka-Management/phpOMS
path: phpOMS
token: ${{ secrets.GH_PAT }}
- name: Checkout Karaka Repository
uses: actions/checkout@main
with:
@ -150,6 +128,7 @@ jobs:
ref: develop
repository: Karaka-Management/Karaka
path: Karaka
submodules: recursive
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@master
with:
@ -192,14 +171,14 @@ jobs:
ref: develop
repository: Karaka-Management/Build
path: Build
- name: Checkout phpOMS Repository
- name: Checkout Karaka Repository
uses: actions/checkout@main
with:
fetch-depth: 1
ref: develop
repository: Karaka-Management/phpOMS
path: phpOMS
token: ${{ secrets.GH_PAT }}
repository: Karaka-Management/Karaka
path: Karaka
submodules: recursive
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@master
with:
@ -218,7 +197,7 @@ jobs:
- name: Setup Composer
run: composer install
- name: phpstan
run: vendor/bin/phpstan analyse -a phpOMS/Autoloader.php --no-progress -l 9 -c Build/Config/phpstan.neon ./
run: vendor/bin/phpstan analyse -a tests/Autoloader.php --no-progress -l 9 -c Build/Config/phpstan.neon ./
codestyle-tests:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'NO_CI')"
@ -262,14 +241,14 @@ jobs:
run: vendor/bin/phpcs --severity=1 ./ --standard="Build/Config/phpcs.xml" -s --report=full
- name: rector
run: vendor/bin/rector process --dry-run --config Build/Config/rector.php ./
- name: Install NPM
uses: actions/setup-node@v3
with:
node-version: '14'
cache: 'npm'
- run: npm install
- name: eslint
run: npx eslint ./ -c Build/Config/.eslintrc.json
# - name: Install NPM
# uses: actions/setup-node@v3
# with:
# node-version: '14'
# cache: 'npm'
# - run: npm install
# - name: eslint
# run: npx eslint ./ -c Build/Config/.eslintrc.json
# linting:
# runs-on: ubuntu-latest
# if: "!contains(github.event.head_commit.message, 'NO_CI')"