@@ -17,19 +17,20 @@ jobs:
1717 strategy :
1818 matrix :
1919 include :
20+ # look for correct alpine image here: https://hub.docker.com/r/hexpm/elixir/tags
2021 - elixir : 1.15.8
2122 otp : 25.3.2.9
23+ suffix : " alpine-3.20.3"
2224
23- - elixir : 1.18.4
24- otp : 27.3
25+ - elixir : 1.17.3
26+ otp : 27.1.2
27+ suffix : " alpine-3.20.3"
2528
26- - elixir : 1.18.4
27- otp : 28.1
28-
29- env :
30- MIX_ENV : test
31- PHX_CI : true
32- ELIXIR_ASSERT_TIMEOUT : 10000
29+ container :
30+ image : hexpm/elixir:${{ matrix.elixir }}-erlang-${{ matrix.otp }}-${{ matrix.suffix }}
31+ env :
32+ ELIXIR_ASSERT_TIMEOUT : 10000
33+ PHX_CI : true
3334
3435 services :
3536 postgres :
@@ -64,39 +65,13 @@ jobs:
6465 repository : phoenixframework/phoenix
6566 path : phoenix
6667
67- - name : Set up Elixir
68- uses : erlef/setup-beam@e6d7c94229049569db56a7ad5a540c051a010af9 # v1.20.4
69- with :
70- elixir-version : ${{ matrix.elixir }}
71- otp-version : ${{ matrix.otp }}
72-
73- - name : Restore deps and _build cache
74- uses : actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
75- with :
76- path : |
77- phoenix/deps
78- phoenix/_build
79- key : phoenix-deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('phoenix/**/mix.lock') }}
80- restore-keys : |
81- phoenix-deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}
82-
8368 - name : Modify Phoenix integration_test mix.exs to use local LiveView
8469 run : |
8570 cd phoenix/integration_test
8671 # Replace the phoenix_live_view dependency with a path dependency
8772 sed -i 's|{:phoenix_live_view[^}]*}|{:phoenix_live_view, path: "../../phoenix_live_view", override: true}|g' mix.exs
8873 cat mix.exs | grep phoenix_live_view
8974
90- - name : Install dependencies
91- run : |
92- cd phoenix/integration_test
93- mix deps.get --only test
94-
95- - name : Remove compiled application files
96- run : |
97- cd phoenix/integration_test
98- mix clean
99-
10075 - name : Run integration tests
10176 run : |
10277 cd phoenix
0 commit comments