Skip to content

Commit

Permalink
Merge pull request #2403 from nextcloud/nickvergessen-patch-1
Browse files Browse the repository at this point in the history
Don't build frontend code to save CI time when only running PHP tests
  • Loading branch information
nickvergessen authored Oct 30, 2023
2 parents 2245250 + 90d004f commit e52eb0f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/api-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ jobs:
php-version: ${{ matrix.php-versions }}
extensions: pdo_sqlite,pdo_mysql,pdo_pgsql,gd,zip
coverage: none
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Setup BATS & httpie
run: sudo apt-get install -y httpie && npm install -g bats@1.7.0
Expand Down Expand Up @@ -97,7 +99,7 @@ jobs:
database-password: ${{ env.POSTGRES_PASSWORD }}

- name: Prime app build
run: make
run: make composer

- name: Configure server with app
uses: SMillerDev/nextcloud-actions/setup-nextcloud-app@main
Expand All @@ -115,7 +117,7 @@ jobs:
sleep 2
cd ${{ github.workspace }}/../server
bats apps/news/tests/api
# Kill php server
Expand All @@ -135,7 +137,7 @@ jobs:
sleep 2
cd ${{ github.workspace }}/../server
bats apps/news/tests/command
kill %1
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/api-php-static-code-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:
php-version: ${{ matrix.php-versions }}
extensions: pdo_sqlite,pdo_mysql,pdo_pgsql,gd,zip
coverage: none
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Set up server non MySQL
uses: SMillerDev/nextcloud-actions/setup-nextcloud@main
Expand All @@ -34,7 +36,7 @@ jobs:
database-type: ${{ matrix.database }}

- name: Build app
run: make
run: make composer

- name: Configure server with app
uses: SMillerDev/nextcloud-actions/setup-nextcloud-app@main
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/api-php-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ jobs:
php-version: ${{ matrix.php-versions }}
extensions: pdo_sqlite,pdo_mysql,pdo_pgsql,gd,zip
coverage: pcov
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

### Back to normal setup
- name: Set up server non MySQL
Expand Down

0 comments on commit e52eb0f

Please sign in to comment.