Skip to content

Commit 5a17a76

Browse files
authored
Merge pull request #291 from commanded/fillout-test-matrix
Fillout test matrix
2 parents 9ad7a1e + c712659 commit 5a17a76

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

.github/workflows/test.yml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,31 @@
11
name: Test
22

3-
on: [push, pull_request]
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
- 'v*'
49

510
jobs:
611
build:
712
name: Build and test
813
runs-on: ubuntu-latest
914
strategy:
1015
matrix:
11-
otp: ['25.3', '26.2']
12-
elixir: ['1.16.0']
16+
include:
17+
- elixir: 1.17.x
18+
otp: 27
19+
- elixir: 1.16.x
20+
otp: 26
21+
- elixir: 1.15.x
22+
otp: 26
23+
- elixir: 1.14.x
24+
otp: 26
25+
check_formatted: "ignore"
26+
- elixir: 1.13.x
27+
otp: 25
28+
check_formatted: "ignore"
1329

1430
services:
1531
postgres:
@@ -45,13 +61,17 @@ jobs:
4561
run: mix deps.get
4662

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

5067
- name: Setup EventStore test databases
5168
run: |
5269
MIX_ENV=test mix event_store.setup
5370
MIX_ENV=jsonb mix event_store.setup
5471
72+
- name: Compile
73+
run: mix compile --warnings-as-errors
74+
5575
- name: Run tests
5676
run: mix test.all
5777

0 commit comments

Comments
 (0)