Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
0xTim committed May 13, 2024
1 parent 1c02882 commit dbf22f4
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ env:

jobs:
integration-linux:
if: ${{ github.event_name == 'pull_request' && !github.event.pull_request.draft }}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ toJSON(matrix) }}
cancel-in-progress: true
strategy:
fail-fast: false
matrix:
Expand All @@ -21,8 +25,24 @@ jobs:
- --fluent.db sqlite
- --fluent.db mongo
leafflags: [--leaf, --no-leaf]
include:
- fluentflags: '--fluent.db mysql'
dbhostname: mysql
- fluentflags: '--fluent.db postgres'
dbhostname: psql
- fluentflags: '--fluent.db mongo'
dbhosturl: 'mongodb://mongo:27017/vapor_database'
runs-on: ubuntu-latest
container: swift:5.10-jammy
services:
mongo: { image: 'mongo:latest' }
mysql:
image: mysql:latest
env: { MYSQL_ALLOW_EMPTY_PASSWORD: 'true', MYSQL_USER: vapor_username, MYSQL_PASSWORD: vapor_password, MYSQL_DATABASE: vapor_database }
psql:
image: postgres:latest
env: { POSTGRES_USER: vapor_username, POSTGRES_DB: vapor_database, POSTGRES_PASSWORD: vapor_password,
POSTGRES_HOST_AUTH_METHOD: 'scram-sha-256', POSTGRES_INITDB_ARGS: '--auth-host=scram-sha-256' }
steps:
- name: Check out toolbox
uses: actions/checkout@v4
Expand All @@ -39,6 +59,9 @@ jobs:
${FLUENTFLAGS} ${LEAFFLAGS}
- name: Test new project
run: swift test --package-path /tmp/toolbox-test
env:
DATABASE_HOST: ${{ matrix.dbhostname }}
DATABASE_URL: ${{ matrix.dbhosturl }}

integration-macos:
strategy:
Expand Down

0 comments on commit dbf22f4

Please sign in to comment.