diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2023-10-30 06:56:57 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-10-30 07:23:49 +0100 |
commit | 90d004f7f768fb823839db39d31c4a77b85bd5f2 (patch) | |
tree | 643c406de7ee38a20bdc1e1e0dc3914d614d288a /.github | |
parent | 224525012c4aaecd7c8597b73b27135861693112 (diff) |
Don't build frontend code to save CI time when only running PHP tests
Signed-off-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/api-integration-tests.yml | 8 | ||||
-rw-r--r-- | .github/workflows/api-php-static-code-check.yml | 4 | ||||
-rw-r--r-- | .github/workflows/api-php-tests.yml | 2 |
3 files changed, 10 insertions, 4 deletions
diff --git a/.github/workflows/api-integration-tests.yml b/.github/workflows/api-integration-tests.yml index bf22f2501..0ab974e2a 100644 --- a/.github/workflows/api-integration-tests.yml +++ b/.github/workflows/api-integration-tests.yml @@ -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 @@ -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 @@ -115,7 +117,7 @@ jobs: sleep 2 cd ${{ github.workspace }}/../server - + bats apps/news/tests/api # Kill php server @@ -135,7 +137,7 @@ jobs: sleep 2 cd ${{ github.workspace }}/../server - + bats apps/news/tests/command kill %1 diff --git a/.github/workflows/api-php-static-code-check.yml b/.github/workflows/api-php-static-code-check.yml index 034b7d34c..9a37fc40c 100644 --- a/.github/workflows/api-php-static-code-check.yml +++ b/.github/workflows/api-php-static-code-check.yml @@ -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 @@ -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 diff --git a/.github/workflows/api-php-tests.yml b/.github/workflows/api-php-tests.yml index 2723e14ea..2fb790770 100644 --- a/.github/workflows/api-php-tests.yml +++ b/.github/workflows/api-php-tests.yml @@ -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 |