File tree Expand file tree Collapse file tree 2 files changed +33
-40
lines changed
test/ecto/adapters/sqlite3 Expand file tree Collapse file tree 2 files changed +33
-40
lines changed Original file line number Diff line number Diff line change 7
7
- main
8
8
9
9
jobs :
10
+ lint :
11
+ runs-on : ubuntu-20.04
12
+ env :
13
+ MIX_ENV : test
14
+ name : Lint
15
+ steps :
16
+ - uses : actions/checkout@v2
17
+ - uses : erlef/setup-elixir@v1
18
+ with :
19
+ otp-version : " 24"
20
+ elixir-version : " 1.12"
21
+ - run : mix deps.get && mix deps.unlock --check-unused
22
+ - run : mix format --check-formatted
10
23
test :
11
24
runs-on : ubuntu-20.04
12
25
env :
13
26
MIX_ENV : test
27
+ name : Ubuntu / OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
14
28
strategy :
15
29
fail-fast : false
16
30
matrix :
17
31
include :
18
- - pair :
19
- elixir : 1.8.2
20
- otp : 20.3.8.26
21
- - pair :
22
- elixir : 1.11.4
23
- otp : 23.2.7
24
- lint : lint
32
+ - elixir : " 1.12"
33
+ otp : " 24"
34
+ - elixir : " 1.12"
35
+ otp : " 23"
36
+ - elixir : " 1.11"
37
+ otp : " 24"
38
+ - elixir : " 1.11"
39
+ otp : " 23"
40
+ - elixir : " 1.10"
41
+ otp : " 24"
42
+ - elixir : " 1.10"
43
+ otp : " 23"
44
+ - elixir : " 1.8"
45
+ otp : " 20"
25
46
steps :
26
47
- uses : actions/checkout@v2
27
-
28
48
- uses : erlef/setup-elixir@v1
29
49
with :
30
- otp-version : ${{matrix.pair.otp}}
31
- elixir-version : ${{matrix.pair.elixir}}
32
-
33
- - name : Install Dependencies
34
- run : mix deps.get --only test
35
-
36
- - run : mix format --check-formatted
37
- if : ${{ matrix.lint }}
38
-
39
- - run : mix deps.get && mix deps.unlock --check-unused
40
- if : ${{ matrix.lint }}
41
-
50
+ otp-version : ${{matrix.otp}}
51
+ elixir-version : ${{matrix.elixir}}
52
+ - run : mix deps.get --only test
42
53
- run : mix deps.compile
43
-
44
- # test/support throwing compile errors, but will soon be refactored
45
- # - run: mix compile --warnings-as-errors
46
- # if: ${{ matrix.lint }}
47
-
48
- - run : mix test --trace
49
-
50
- - run : EXQLITE_INTEGRATION=true mix test --trace
54
+ - run : mix compile
55
+ - run : mix test
Original file line number Diff line number Diff line change @@ -2368,20 +2368,8 @@ defmodule Ecto.Adapters.SQLite3.ConnectionTest do
2368
2368
end
2369
2369
2370
2370
test "create table with an unsupported type" do
2371
- msg =
2372
- if :erlang . system_info ( :otp_release ) >= '24' do
2373
- """
2374
- errors were found at the given arguments:
2375
-
2376
- * 1st argument: not an atom
2377
- """
2378
- else
2379
- "argument error"
2380
- end
2381
-
2382
2371
assert_raise (
2383
2372
ArgumentError ,
2384
- msg ,
2385
2373
fn ->
2386
2374
{ :create , table ( :posts ) ,
2387
2375
[
You can’t perform that action at this time.
0 commit comments