mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-21 21:40:48 +02:00
Simplify the workflow file
This uses a matrix configuration to set up all the various configurations we're testing tracks with. It also adds testing on ruby 3.0 and testing postgres with all the various ruby versions.
This commit is contained in:
parent
e8805d3d3d
commit
e8eb4963d5
1 changed files with 6 additions and 31 deletions
37
.github/workflows/continuous-integration.yml
vendored
37
.github/workflows/continuous-integration.yml
vendored
|
@ -1,38 +1,13 @@
|
|||
---
|
||||
name: Automated tests
|
||||
|
||||
on: pull_request
|
||||
|
||||
jobs:
|
||||
test25mysql:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
strategy: matrix
|
||||
matrix:
|
||||
ruby: ["2.5", "2.6", "2.7", "3.0"]
|
||||
db: [sqlite, mysql, postgres]
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- run: bash -x script/cibuild 2.5 mysql
|
||||
|
||||
test26mysql:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- run: bash -x script/cibuild 2.6 mysql
|
||||
|
||||
test27mysql:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- run: bash -x script/cibuild 2.7 mysql
|
||||
|
||||
test27postgres:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- run: bash -x script/cibuild 2.7 postgres
|
||||
|
||||
test27sqlite:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- run: bash -x script/cibuild 2.7 sqlite
|
||||
|
||||
# - run: bash -x script/cibuild 2.5 postgres
|
||||
# - run: bash -x script/cibuild 2.7 postgres
|
||||
- run: bash -x script/cibuild ${{ matrix.ruby }} ${{ matrix.db }}
|
Loading…
Add table
Add a link
Reference in a new issue