diff options
author | Sean Molenaar <sean@seanmolenaar.eu> | 2021-02-04 23:19:05 +0100 |
---|---|---|
committer | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2021-02-05 12:43:20 +0100 |
commit | d9bde18acca067c4e53746044d96aaebd341105c (patch) | |
tree | a4a05def219653b713432983811f59dfbb5bf2ea | |
parent | 6e9e2512eaa94c753119e22b6224de267d9fd968 (diff) |
Actions: Upload coverage on main branch
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Signed-off-by: Sean Molenaar <sean@m2mobi.com>
-rw-r--r-- | .github/workflows/api-integration-tests.yml (renamed from .github/workflows/integration-tests.yml) | 2 | ||||
-rw-r--r-- | .github/workflows/api-php-static-code-check.yml (renamed from .github/workflows/static-code-check.yml) | 2 | ||||
-rw-r--r-- | .github/workflows/api-php-tests.yml (renamed from .github/workflows/php-tests.yml) | 2 | ||||
-rw-r--r-- | .github/workflows/build-release.yml | 2 | ||||
-rw-r--r-- | .github/workflows/frontend-nodejs-tests.yml (renamed from .github/workflows/frontend-tests.yml) | 0 | ||||
-rw-r--r-- | .github/workflows/post-merge-tasks.yml | 52 | ||||
-rw-r--r-- | .github/workflows/release-drafter.yml | 13 |
7 files changed, 56 insertions, 17 deletions
diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/api-integration-tests.yml index 5c77e784a..2d98a4776 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/api-integration-tests.yml @@ -29,7 +29,7 @@ jobs: strategy: matrix: php-versions: ['7.3', '7.4'] - nextcloud: ['stable20'] + nextcloud: ['stable20', 'stable21'] database: ['sqlite', 'pgsql', 'mysql'] experimental: [false] include: diff --git a/.github/workflows/static-code-check.yml b/.github/workflows/api-php-static-code-check.yml index 4473057bb..0c0d4cab8 100644 --- a/.github/workflows/static-code-check.yml +++ b/.github/workflows/api-php-static-code-check.yml @@ -8,7 +8,7 @@ jobs: strategy: matrix: php-versions: [ '7.4' ] - nextcloud: [ 'stable20', 'v21.0.0RC1' ] + nextcloud: [ 'stable20', 'stable21' ] database: [ 'sqlite' ] name: "Psalm: Nextcloud ${{ matrix.nextcloud }}" steps: diff --git a/.github/workflows/php-tests.yml b/.github/workflows/api-php-tests.yml index e057bbda4..fa4d4a9dd 100644 --- a/.github/workflows/php-tests.yml +++ b/.github/workflows/api-php-tests.yml @@ -10,7 +10,7 @@ jobs: strategy: matrix: php-versions: ['7.4'] - nextcloud: ['v21.0.0RC1'] + nextcloud: ['stable21'] database: ['sqlite'] experimental: [false] steps: diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 56ae89329..c87f0f5e5 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -15,7 +15,7 @@ jobs: strategy: matrix: php-versions: ['7.4'] - nextcloud: ['stable20'] + nextcloud: ['stable21'] database: ['sqlite'] steps: - name: Checkout diff --git a/.github/workflows/frontend-tests.yml b/.github/workflows/frontend-nodejs-tests.yml index 91cab7d8f..91cab7d8f 100644 --- a/.github/workflows/frontend-tests.yml +++ b/.github/workflows/frontend-nodejs-tests.yml diff --git a/.github/workflows/post-merge-tasks.yml b/.github/workflows/post-merge-tasks.yml new file mode 100644 index 000000000..f497d790d --- /dev/null +++ b/.github/workflows/post-merge-tasks.yml @@ -0,0 +1,52 @@ +name: Post-merge tasks +on: + push: + branches: + - master +jobs: + update-release-draft: + runs-on: ubuntu-latest + name: "Release Drafter" + steps: + - uses: release-drafter/release-drafter@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + php: + runs-on: ubuntu-latest + continue-on-error: false + name: "Coverage: Nextcloud PHP ${{ matrix.php-versions }}" + strategy: + matrix: + nextcloud: ['stable21'] + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '7.4' + + ### Back to normal setup + - name: Set up server non MySQL + uses: SMillerDev/nextcloud-actions/setup-nextcloud@main + with: + cron: true + version: ${{ matrix.nextcloud }} + database-type: sqlite + + - name: Prime app build + run: make + + - name: Configure server with app + uses: SMillerDev/nextcloud-actions/setup-nextcloud-app@main + with: + app: 'news' + check-code: true + + - name: Prep PHP tests + run: cd ../server/apps/news && make php-test-dependencies + - name: Unittests + run: cd ../server/apps/news && make unit-test + - name: Upload codecoverage + run: cd ../server/apps/news && bash <(curl -s https://codecov.io/bash) -f build/php-unit.clover diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml deleted file mode 100644 index 67b555468..000000000 --- a/.github/workflows/release-drafter.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: Release Drafter -on: - push: - branches: - - master - -jobs: - update-release-draft: - runs-on: ubuntu-latest - steps: - - uses: release-drafter/release-drafter@v5 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file |