fix ruby test matrix #82
Workflow file for this run
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: build | |
| on: | |
| push: | |
| tags-ignore: | |
| - '*' | |
| pull_request: | |
| env: | |
| SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }} | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| db: [sqlite3, mysql, postgres] | |
| ruby_version: ["3.1", "3.2", "3.3", "3.4"] | |
| redmine_version: [6.0-stable, master] | |
| exclude: | |
| - ruby_version: "3.4" | |
| redmine_version: 6.0-stable | |
| - ruby_version: "3.1" | |
| redmine_version: master | |
| services: | |
| mysql: | |
| image: mysql:5.7 | |
| options: --health-cmd "mysqladmin ping -h localhost" --health-interval 20s --health-timeout 10s --health-retries 10 | |
| env: | |
| MYSQL_ROOT_PASSWORD: dbpassword | |
| postgres: | |
| image: postgres | |
| env: | |
| POSTGRES_USER: root | |
| POSTGRES_PASSWORD: dbpassword | |
| options: >- | |
| --health-cmd pg_isready | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| container: | |
| image: ruby:${{ matrix.ruby_version }} | |
| env: | |
| DB: ${{ matrix.db }} | |
| DB_USERNAME: root | |
| DB_PASSWORD: dbpassword | |
| DB_HOST: ${{ matrix.db }} | |
| REDMINE_VER: ${{ matrix.redmine_version }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install | |
| run: bash -x ./build-scripts/install.sh | |
| - name: Build | |
| run: bash -x ./build-scripts/build.sh | |
| - name: Clean | |
| run: bash -x ./build-scripts/cleanup.sh | |
| - uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| fail_ci_if_error: true | |
| - name: Slack Notification on Failure | |
| uses: rtCamp/[email protected] | |
| if: failure() | |
| env: | |
| SLACK_CHANNEL: plugin-wiki_ext | |
| SLACK_TITLE: Test Failure | |
| SLACK_COLOR: danger |