mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-12-28 04:45:06 +01:00
address warnings and errors in github actions
This commit is contained in:
parent
f662640554
commit
17f924118e
3 changed files with 11 additions and 11 deletions
19
.github/workflows/tests.yml
vendored
19
.github/workflows/tests.yml
vendored
|
@ -8,8 +8,8 @@ jobs:
|
||||||
Composer:
|
Composer:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#handling-failures
|
# https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#handling-failures
|
||||||
continue-on-error: ${{ matrix.experimental }}
|
continue-on-error: "${{ matrix.experimental }}"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
@ -21,7 +21,7 @@ jobs:
|
||||||
PHPunit:
|
PHPunit:
|
||||||
name: PHP ${{ matrix.php-versions }} unit tests on ${{ matrix.operating-system }}
|
name: PHP ${{ matrix.php-versions }} unit tests on ${{ matrix.operating-system }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
continue-on-error: ${{ matrix.experimental }}
|
continue-on-error: "${{ matrix.experimental }}"
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
php-versions: ['7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
|
php-versions: ['7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
|
||||||
|
@ -86,9 +86,9 @@ jobs:
|
||||||
- name: Cache dependencies
|
- name: Cache dependencies
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ${{ steps.composer-cache.outputs.dir }}
|
path: "${{ steps.composer-cache.outputs.dir }}"
|
||||||
key: ${{ runner.os }}-composer-${{ steps.get-date.outputs.date }}-${{ hashFiles('**/composer.json') }}
|
key: "${{ runner.os }}-composer-${{ steps.get-date.outputs.date }}-${{ hashFiles('**/composer.json') }}"
|
||||||
restore-keys: ${{ runner.os }}-composer-${{ steps.get-date.outputs.date }}-
|
restore-keys: "${{ runner.os }}-composer-${{ steps.get-date.outputs.date }}-"
|
||||||
|
|
||||||
# composer installation
|
# composer installation
|
||||||
- name: Unset platform requirement
|
- name: Unset platform requirement
|
||||||
|
@ -136,14 +136,14 @@ jobs:
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
run: npm run ci-test
|
run: npm run ci-test
|
||||||
working-directory: js
|
working-directory: js
|
||||||
|
|
||||||
- name: Upload Test Results
|
- name: Upload Test Results
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: Test Results (Mocha)
|
name: Test Results (Mocha)
|
||||||
path: js/mocha-results.xml
|
path: js/mocha-results.xml
|
||||||
|
|
||||||
event_file:
|
event_file:
|
||||||
name: "Event File"
|
name: "Event File"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -152,5 +152,4 @@ jobs:
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: Event File
|
name: Event File
|
||||||
path: ${{ github.event_path }}
|
path: "${{ github.event_path }}"
|
||||||
|
|
||||||
|
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -28,6 +28,7 @@ vendor/**/build_phar.php
|
||||||
|
|
||||||
# Ignore local node modules, unit testing logs, api docs and IDE project files
|
# Ignore local node modules, unit testing logs, api docs and IDE project files
|
||||||
js/node_modules/
|
js/node_modules/
|
||||||
|
js/mocha-results.xml
|
||||||
js/test.log
|
js/test.log
|
||||||
tst/log/
|
tst/log/
|
||||||
tst/ConfigurationCombinationsTest.php
|
tst/ConfigurationCombinationsTest.php
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "mocha",
|
"test": "mocha",
|
||||||
"ci-test": "mocha --reporter-option output=mocha-results.xml"
|
"ci-test": "mocha --reporter xunit --reporter-option output=mocha-results.xml"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
Loading…
Reference in a new issue