fix tests

This commit is contained in:
Dennis Eichhorn 2023-09-24 23:20:28 +00:00
parent bfa913c728
commit 9c8765dd4b

View File

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