Skip to content

Commit

Permalink
refactor code
Browse files Browse the repository at this point in the history
  • Loading branch information
SwikritiT committed Nov 9, 2022
1 parent 9c417d5 commit ced0e0f
Show file tree
Hide file tree
Showing 14 changed files with 13,847 additions and 28,608 deletions.
44 changes: 34 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/cancel-workflow-action@0.9.1
Expand Down Expand Up @@ -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:
Expand All @@ -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/lcov-reporter-action@v0.3.1
Expand Down
1 change: 0 additions & 1 deletion cucumber.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ const ncAdminPageObject = new NextcloudAdminPage()
const { OpenprojectAdminPage } = require("./tests/e2e/pageObjects/OpenprojectAdminPage")
const opAdminPageObject = new OpenprojectAdminPage()


setDefaultTimeout(60000)

BeforeAll(async function () {
Expand Down
Loading

0 comments on commit ced0e0f

Please sign in to comment.