gearsdigital/reporter-for-kirby

View on GitHub
.github/workflows/test.yml

Summary

Maintainability
Test Coverage
name: TEST

on: [push]

jobs:
  test:

    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2
        with:
          path: 'kirby-reporter'
          fetch-depth: 0

      - name: Install Starterkit
        run: |
          git clone https://github.com/getkirby/starterkit.git
          mkdir starterkit/site/plugins

      - name: Update Kirby
        run: |
          rm -rf starterkit/kirby
          composer require getkirby/cms:3.6.0-rc.4@dev
          mv kirby starterkit
          cd starterkit/kirby
          composer install

      - name: Install
        run: |
          mv kirby-reporter starterkit/site/plugins
          cd starterkit/site/plugins/kirby-reporter
          composer install

      - name: Tests
        run: |
          cd starterkit/site/plugins/kirby-reporter
          export KIRBY_REPORTER_TEST=true
          composer validate
          composer test