add optional access token for 3rd party repositories #30
This file contains hidden or 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: OXID Plugin CI | |
| on: | |
| push: | |
| branches: | |
| - 'rel_*' | |
| - 'main' | |
| - 'master' | |
| pull_request: | |
| jobs: | |
| plugin-tests: | |
| runs-on: ubuntu-latest | |
| services: | |
| mariadb: | |
| image: mariadb:10.6 | |
| env: | |
| MYSQL_ROOT_PASSWORD: root | |
| MYSQL_DATABASE: oxid | |
| MYSQL_USER: oxid | |
| MYSQL_PASSWORD: oxid | |
| ports: | |
| - 3306:3306 | |
| options: >- | |
| --health-cmd="mysqladmin ping --silent" | |
| --health-interval=10s | |
| --health-timeout=5s | |
| --health-retries=5 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - oxid_ref: "dev-b-7.1-ce" | |
| php: "8.1" | |
| name: OXID ${{ matrix.oxid_ref }} in PHP ${{ matrix.php }} tests | |
| env: | |
| DB_HOST: 127.0.0.1 | |
| DB_NAME: oxid | |
| DB_USER: oxid | |
| DB_PASS: oxid | |
| steps: | |
| - name: Checkout test plugin repository | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: d3datadevelopment/CI-Tests | |
| - name: Checkout CI Actions | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: d3datadevelopment/CI-Actions | |
| path: .ci-actions | |
| - name: Run OXID tests | |
| uses: ./.ci-actions/oxid-plugin-test | |
| with: | |
| php_version: ${{ matrix.php }} | |
| oxid_ref: ${{ matrix.oxid_ref }} | |
| phpunit_version: "^9 || ^10" | |
| sourceguardian: "true" | |
| composer_package_name: "d3/ci-test" | |
| oxid_module_id: "d3citest" | |
| test_suites: "unit,integration" | |
| syntax_check_paths: "Tests" | |
| report-status: | |
| runs-on: ubuntu-latest | |
| needs: plugin-tests | |
| if: always() | |
| steps: | |
| - name: Report CI status | |
| uses: d3datadevelopment/ci-actions/status-reporter@v1.0.0 | |
| with: | |
| api_status_endpoint: "${{ vars.GITEA_API }}${{ github.sha }}" | |
| auth_token: ${{ secrets.GITEA_TOKEN }} | |
| state: ${{ needs.plugin-tests.result }} | |
| description: "CI result: ${{ needs.plugin-tests.result }}" | |
| target_url: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" |