diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000000..ea71d818b9f --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,42 @@ +on: + push: + branches: + - '*' + pull_request: + branches: + ['main'] +name: ojs +jobs: + ojs: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + include: + - php-version: 8.1 + validate: 'validate' + - php-version: 8.1 + database: pgsql + test: 'test' + - php-version: 8.1 + database: mariadb + test: 'test' + - php-version: 8.1 + database: mysql + test: 'test' + upgrade: 'upgrade' + upgrade_test: 'stable-3_3_0,stable-3_4_0' + - php-version: 8.2 + database: mysql + test: 'test' + - php-version: 8.2 + database: pgsql + test: 'test' + + name: ojs + steps: + - uses: pkp/pkp-github-actions@v1 + with: + node_version: 20 + dataset_branch: 'main' + DEBUG_IN_TMATE: false diff --git a/.github/workflows/schedule.yml b/.github/workflows/schedule.yml new file mode 100644 index 00000000000..2dc51ca333d --- /dev/null +++ b/.github/workflows/schedule.yml @@ -0,0 +1,79 @@ +on: + schedule: + - cron: '5 5 * * *' +name: schedule +jobs: + ojs-main: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + include: + - php-version: 8.1 + validate: 'validate' + - php-version: 8.1 + database: pgsql + test: 'test' + SAVE_BUILD: 'save_build' + - php-version: 8.1 + database: mariadb + test: 'test' + SAVE_BUILD: 'save_build' + - php-version: 8.1 + database: mysql + test: 'test' + SAVE_BUILD: 'save_build' + upgrade: 'upgrade' + upgrade_test: 'stable-3_3_0,stable-3_4_0' + - php-version: 8.2 + database: mysql + test: 'test' + - php-version: 8.2 + database: pgsql + test: 'test' + + name: ojs + steps: + - uses: pkp/pkp-github-actions@v1 + with: + node_version: 20 + dataset_branch: 'main' + DATASETS_ACCESS_KEY: ${{secrets.DATASETS_ACCESS_KEY}} + DEBUG_IN_TMATE: false + ojs-stable-3_4_0: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + include: + - php-version: 8.1 + validate: 'validate' + - php-version: 8.1 + database: pgsql + test: 'test' + SAVE_BUILD: 'save_build' + - php-version: 8.1 + database: mariadb + test: 'test' + SAVE_BUILD: 'save_build' + - php-version: 8.1 + database: mysql + test: 'test' + SAVE_BUILD: 'save_build' + upgrade: 'upgrade' + upgrade_test: '3.1.0,3.1.1-2,3.1.2,stable-3_2_0,stable-3_2_1,stable-3_3_0' + - php-version: 8.2 + database: mysql + test: 'test' + - php-version: 8.2 + database: pgsql + test: 'test' + + name: ojs-stable-3_4_0 + steps: + - uses: pkp/pkp-github-actions@v1 + with: + node_version: 16 + dataset_branch: 'stable-3_4_0' + DATASETS_ACCESS_KEY: ${{secrets.DATASETS_ACCESS_KEY}} + DEBUG_IN_TMATE: false