Skip to content

Commit

Permalink
Merge pull request #291 from commanded/fillout-test-matrix
Browse files Browse the repository at this point in the history
Fillout test matrix
  • Loading branch information
drteeth authored Oct 24, 2024
2 parents 9ad7a1e + c712659 commit 5a17a76
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,31 @@
name: Test

on: [push, pull_request]
on:
pull_request:
push:
branches:
- master
- 'v*'

jobs:
build:
name: Build and test
runs-on: ubuntu-latest
strategy:
matrix:
otp: ['25.3', '26.2']
elixir: ['1.16.0']
include:
- elixir: 1.17.x
otp: 27
- elixir: 1.16.x
otp: 26
- elixir: 1.15.x
otp: 26
- elixir: 1.14.x
otp: 26
check_formatted: "ignore"
- elixir: 1.13.x
otp: 25
check_formatted: "ignore"

services:
postgres:
Expand Down Expand Up @@ -45,13 +61,17 @@ jobs:
run: mix deps.get

- name: Check formatting
if: ${{ matrix.check_formatted != 'ignore' }}
run: mix format --check-formatted

- name: Setup EventStore test databases
run: |
MIX_ENV=test mix event_store.setup
MIX_ENV=jsonb mix event_store.setup
- name: Compile
run: mix compile --warnings-as-errors

- name: Run tests
run: mix test.all

Expand Down

0 comments on commit 5a17a76

Please sign in to comment.