Skip to content

Commit 1fce3cc

Browse files
committed
fixed haxe-version access
1 parent d0d0e16 commit 1fce3cc

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/checkstyle-linux.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,19 @@ jobs:
2525
with:
2626
node-version: 10
2727
- name: Installing codeclimate client
28-
if: haxe-version == '4.0.0-rc.5'
28+
if: matrix.haxe-version == '4.0.0-rc.5'
2929
run: |
3030
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
3131
chmod +x ./cc-test-reporter
3232
./cc-test-reporter before-build
3333
- name: NPM install
3434
run: npm ci
35-
- name: Install Haxe version ${{ haxe-version }}
35+
- name: Install Haxe version ${{ matrix.haxe-version }}
3636
run: |
37-
npx lix download haxe ${{ haxe-version }}
38-
npx lix use haxe ${{ haxe-version }}
37+
npx lix download haxe ${{ matrix.haxe-version }}
38+
npx lix use haxe ${{ matrix.haxe-version }}
3939
- name: Prepare Haxe 3 dependencies
40-
if: haxe-version == '3.4.7'
40+
if: matrix.haxe-version == '3.4.7'
4141
run: |
4242
mv haxe_libraries haxe4_libraries
4343
mv haxe3_libraries haxe_libraries
@@ -65,13 +65,13 @@ jobs:
6565
- name: Run Java tests
6666
run: npx haxe testJava.hxml
6767
- name: Format and upload codeclimate coverage
68-
if: success() && haxe-version == '4.0.0-rc.5'
68+
if: success() && matrix.haxe-version == '4.0.0-rc.5'
6969
run: |
7070
( \
7171
cd src; \
7272
../cc-test-reporter format-coverage -t lcov ../lcov.info; \
7373
../cc-test-reporter upload-coverage; \
7474
)
7575
- name: Upload results to codecov
76-
if: success() && haxe-version == '4.0.0-rc.5'
76+
if: success() && matrix.haxe-version == '4.0.0-rc.5'
7777
run: bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"

0 commit comments

Comments
 (0)