Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't build frontend code to save CI time when only running PHP tests #2403

Merged
merged 1 commit into from
Oct 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading