fix(deps): update amphp (master) (major) #665
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: pull_request | |
jobs: | |
frontend-unit-test: | |
runs-on: ubuntu-latest | |
name: Front-end unit tests | |
steps: | |
- uses: actions/checkout@master | |
- name: Set up Node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 12.x | |
- name: npm install | |
run: npm install | |
- name: run tests | |
run: npm run test | |
env: | |
CI: true | |
smoke-tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-versions: [ '8.1' ] | |
nextcloud-versions: [ 'master' ] | |
db: [ 'mysql' ] | |
include: | |
- php-versions: '8.0' | |
nextcloud-versions: master | |
db: 'pgsql' | |
name: Nextcloud${{ matrix.nextcloud-versions }}-${{ matrix.db }} smoke test | |
services: | |
mysql-service: | |
image: mariadb:10.3 | |
env: | |
MYSQL_ROOT_PASSWORD: my-secret-pw | |
MYSQL_DATABASE: nextcloud | |
MYSQL_USER: nextcloud | |
MYSQL_PASSWORD: nextcloud | |
ports: | |
- 3306:3306 | |
options: >- | |
--health-cmd="mysqladmin ping" | |
--health-interval=10s | |
--health-timeout=5s | |
--health-retries=3 | |
postgres-service: | |
image: postgres | |
env: | |
POSTGRES_USER: nextcloud | |
POSTGRES_DB: nextcloud | |
POSTGRES_PASSWORD: nextcloud | |
ports: | |
- 5432:5432 | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
steps: | |
- name: Set up php${{ matrix.php-versions }} | |
uses: shivammathur/setup-php@master | |
with: | |
php-version: ${{ matrix.php-versions }} | |
extensions: ctype,curl,dom,gd,iconv,intl,json,mbstring,openssl,posix,xml,zip,gmp | |
coverage: xdebug | |
- name: Checkout Nextcloud | |
run: git clone https://github.com/nextcloud/server.git --recursive --depth 1 -b ${{ matrix.nextcloud-versions }} nextcloud | |
- name: Install Nextcloud | |
run: php -f nextcloud/occ maintenance:install --database-host 127.0.0.1 --database-name nextcloud --database-user nextcloud --database-pass nextcloud --admin-user admin --admin-pass admin --database ${{ matrix.db }} | |
- name: Checkout the app | |
uses: actions/checkout@master | |
with: | |
path: nextcloud/apps/suspicious_login | |
- name: Install dependencies | |
working-directory: nextcloud/apps/suspicious_login | |
run: composer install | |
- name: Install the app | |
run: php -f nextcloud/occ app:enable suspicious_login | |
- name: Configure Nextcloud for testing | |
run: php -f nextcloud/occ config:system:set debug --type bool --value true |