File tree 2 files changed +15
-6
lines changed
2 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 24
24
uses : actions/checkout@v4
25
25
with :
26
26
path : ${{ env.PLUGIN_FOLDER }}
27
+ - name : Checkout Plugin branch
28
+ working-directory : ${{ env.PLUGIN_FOLDER }}
29
+ run : |
30
+ git checkout -B ${{ matrix.PLATFORM.RMQREF }}
27
31
- name : Install Erlang and Elixir
28
32
uses : erlef/setup-beam@v1
29
33
with :
@@ -35,19 +39,22 @@ jobs:
35
39
make
36
40
- name : Run tests
37
41
working-directory : ${{ env.PLUGIN_FOLDER }}
42
+ env :
43
+ MIX_ENV : ' test'
38
44
run : |
39
- git checkout -B ${{ matrix.PLATFORM.RMQREF }}
40
45
make tests
46
+ - name : Build distribution files
47
+ working-directory : ${{ env.PLUGIN_FOLDER }}
48
+ env :
49
+ MIX_ENV : ' prod'
50
+ DIST_AS_EZS : ' yes'
51
+ run : |
52
+ make dist
41
53
- name : Store test artifacts
42
54
uses : actions/upload-artifact@v4
43
55
with :
44
56
name : tests-rmq${{ matrix.PLATFORM.RMQREF }}-erl${{ matrix.PLATFORM.ERLVER }}-elx${{ matrix.PLATFORM.ELXVER }}
45
57
path : ${{ env.SERVER_FOLDER }}/logs/
46
- - name : Build distribution files
47
- working-directory : ${{ env.PLUGIN_FOLDER }}
48
- run : |
49
- git checkout -B ${{ matrix.PLATFORM.RMQREF }}
50
- MIX_ENV=prod DIST_AS_EZS=yes make dist
51
58
- name : Store build artifacts
52
59
uses : actions/upload-artifact@v4
53
60
with :
Original file line number Diff line number Diff line change @@ -22,10 +22,12 @@ app:: $(elixir_srcs) deps
22
22
$(MIX ) make_app
23
23
24
24
dist :: app
25
+ echo $MIX_ENV
25
26
mkdir -p $(DIST_DIR )
26
27
$(MIX ) make_archives
27
28
28
29
tests :: dist
30
+ echo $MIX_ENV
29
31
$(MIX ) make_tests
30
32
31
33
clean ::
You can’t perform that action at this time.
0 commit comments