summaryrefslogtreecommitdiffstats
path: root/.github/workflows/api-integration-tests.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/api-integration-tests.yml')
-rw-r--r--.github/workflows/api-integration-tests.yml25
1 files changed, 10 insertions, 15 deletions
diff --git a/.github/workflows/api-integration-tests.yml b/.github/workflows/api-integration-tests.yml
index 484bf38b3..0ab974e2a 100644
--- a/.github/workflows/api-integration-tests.yml
+++ b/.github/workflows/api-integration-tests.yml
@@ -28,26 +28,22 @@ jobs:
- 5432:5432 # Maps tcp port 5432 on service container to the host
strategy:
matrix:
- php-versions: ['7.4', '8.0']
- nextcloud: ['stable23', 'stable24', 'stable25']
+ php-versions: ['8.0', '8.1']
+ nextcloud: ['stable27']
database: ['sqlite', 'pgsql', 'mysql']
experimental: [false]
include:
- - php-versions: '8.0'
+ - php-versions: 8.1
nextcloud: pre-release
database: sqlite
experimental: true
- - php-versions: '8.2'
+ - php-versions: 8.2
nextcloud: pre-release
database: sqlite
experimental: true
- - php-versions: 8.1
- nextcloud: stable25
- database: sqlite
- experimental: false
steps:
- name: Checkout
- uses: actions/checkout@v3
+ uses: actions/checkout@v4
with:
submodules: recursive
@@ -57,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
@@ -101,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
@@ -119,16 +117,13 @@ jobs:
sleep 2
cd ${{ github.workspace }}/../server
-
+
bats apps/news/tests/api
# Kill php server
kill %1
kill %2
- - name: Setup problem matchers for PHP
- run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"
-
- name: Functional tests maintenance
working-directory: ../server
run: |
@@ -142,7 +137,7 @@ jobs:
sleep 2
cd ${{ github.workspace }}/../server
-
+
bats apps/news/tests/command
kill %1