-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
13,847 additions
and
28,608 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,19 @@ jobs: | |
- nextcloudVersion: stable24 | ||
phpVersion: 8.1 | ||
runs-on: ubuntu-latest | ||
services: | ||
openproject: | ||
image: openproject/community:12 | ||
ports: | ||
- 8081:80 | ||
env: | ||
OPENPROJECT_SECRET_KEY_BASE: secret | ||
OPENPROJECT_HOST__NAME: localhost:8081 | ||
OPENPROJECT_HTTPS: false | ||
OPENPROJECT_PASSWORD__MIN__LENGTH: 0 | ||
OPENPROJECT_ONBOARDING__ENABLED: false | ||
OPENPROJECT_AUTHENTICATION_GLOBAL__BASIC__AUTH_USER: apiadmin | ||
OPENPROJECT_AUTHENTICATION_GLOBAL__BASIC__AUTH_PASSWORD: apiadmin | ||
steps: | ||
- name: Cancel previous runs | ||
uses: styfle/[email protected] | ||
|
@@ -81,16 +94,16 @@ jobs: | |
- name: Install NPM Dependencies | ||
run: npm install | ||
|
||
- name: JS Lint | ||
run: npm run lint | ||
|
||
- name: Style Lint | ||
run: npm run stylelint | ||
|
||
- name: PHP & Vue Unit Tests | ||
run: | | ||
make phpunit | ||
make jsunit | ||
# - name: JS Lint | ||
# run: npm run lint | ||
# | ||
# - name: Style Lint | ||
# run: npm run stylelint | ||
# | ||
# - name: PHP & Vue Unit Tests | ||
# run: | | ||
# make phpunit | ||
# make jsunit | ||
|
||
- name: API Tests | ||
env: | ||
|
@@ -106,6 +119,17 @@ jobs: | |
cd apps/integration_openproject | ||
make api-test | ||
- name: wait on OpenProject | ||
uses: iFaxity/wait-on-action@v1 | ||
with: | ||
resource: http-get://localhost:8081/api/v3/ | ||
timeout: 240000 | ||
- name: try OpenProject | ||
run: curl http://localhost:8081/api/v3/users -u apiadmin:apiadmin | ||
|
||
- name: try Nextcloud | ||
run: curl http://localhost:8080/status.php | ||
|
||
- name: JS Code Coverage Summary Report | ||
if: ${{ github.event_name == 'pull_request' && matrix.nextcloudVersion == 'master' && matrix.phpVersion == '7.4' }} | ||
uses: romeovs/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.