Skip to content
Snippets Groups Projects
Select Git revision
  • 8effecb7b07314898260ffb2affc4e526015c7a8
  • Bachelorarbeit default protected
2 results

implementation.tex

Blame
  • moodle-plugin-ci.yml 3.83 KiB
    name: Moodle Plugin CI
    
    on: [push, pull_request]
    
    jobs:
      test:
        runs-on: ubuntu-latest
    
        services:
          postgres:
            image: postgres:12
            env:
              POSTGRES_USER: 'postgres'
              POSTGRES_HOST_AUTH_METHOD: 'trust'
            ports:
              - 5432:5432
            options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 3
          mariadb:
            image: mariadb:10.5
            env:
              MYSQL_USER: 'root'
              MYSQL_ALLOW_EMPTY_PASSWORD: "true"
            ports:
              - 3306:3306
            options: --health-cmd="mysqladmin ping" --health-interval 10s --health-timeout 5s --health-retries 3
    
        strategy:
          fail-fast: false
          matrix:
            include:
              - php: 7.4
                moodle-branch: MOODLE_401_STABLE
                database: pgsql
              - php: 7.4
                moodle-branch: MOODLE_401_STABLE
                database: mariadb
              - php: 7.4
                moodle-branch: MOODLE_400_STABLE
                database: pgsql
              - php: 7.4
                moodle-branch: MOODLE_400_STABLE
                database: mariadb
              - php: 7.4
                moodle-branch: MOODLE_311_STABLE
                database: pgsql
              - php: 7.4
                moodle-branch: MOODLE_311_STABLE
                database: mariadb
    
              - php: 7.3
                moodle-branch: MOODLE_311_STABLE
                database: pgsql
              - php: 7.3
                moodle-branch: MOODLE_311_STABLE
                database: mariadb
    
        steps:
          - name: Check out repository code
            uses: actions/checkout@v3
            with:
              path: plugin
    
          - name: Setup PHP ${{ matrix.php }}
            uses: shivammathur/setup-php@v2
            with:
              php-version: ${{ matrix.php }}
              extensions: ${{ matrix.extensions }}
              ini-values: max_input_vars=5000
              coverage: none