Skip to content

Commit 55cbd58

Browse files
committed
build(actions): explicitly set branches and environment variables
1 parent b8aa31d commit 55cbd58

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/action.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ jobs:
2424
uses: actions/checkout@v4
2525
with:
2626
path: ${{ env.PLUGIN_FOLDER }}
27+
- name: Checkout Plugin branch
28+
run: |
29+
git checkout -B ${{ matrix.PLATFORM.RMQREF }}
2730
- name: Install Erlang and Elixir
2831
uses: erlef/setup-beam@v1
2932
with:
@@ -35,19 +38,22 @@ jobs:
3538
make
3639
- name: Run tests
3740
working-directory: ${{ env.PLUGIN_FOLDER }}
41+
env:
42+
MIX_ENV: 'test'
3843
run: |
39-
git checkout -B ${{ matrix.PLATFORM.RMQREF }}
4044
make tests
45+
- name: Build distribution files
46+
working-directory: ${{ env.PLUGIN_FOLDER }}
47+
env:
48+
MIX_ENV: 'prod'
49+
DIST_AS_EZS: 'yes'
50+
run: |
51+
make dist
4152
- name: Store test artifacts
4253
uses: actions/upload-artifact@v4
4354
with:
4455
name: tests-rmq${{ matrix.PLATFORM.RMQREF }}-erl${{ matrix.PLATFORM.ERLVER }}-elx${{ matrix.PLATFORM.ELXVER }}
4556
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
5157
- name: Store build artifacts
5258
uses: actions/upload-artifact@v4
5359
with:

0 commit comments

Comments
 (0)