Skip to content

Commit

Permalink
updating workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
agracio committed Oct 26, 2024
1 parent 97d5938 commit 56aaf4a
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 9 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/build-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,21 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Resolve Electron version for test
- name: Resolve Electron version from major
id: electron-test-version
uses: ./.github/actions/get-electron-version
with:
electron: '${{ matrix.electron }}'
shell: bash
run: |
if [[ ${{ matrix.electron }} == '29' ]]; then
echo "test-version=29.4.6" >> $GITHUB_OUTPUT
elif [[ ${{ matrix.electron }} == '30' ]]; then
echo "test-version=30.5.1" >> $GITHUB_OUTPUT
elif [[ ${{ matrix.electron }} == '31' ]]; then
echo "test-version=31.7.2" >> $GITHUB_OUTPUT
elif [[ ${{ matrix.electron }} == '32' ]]; then
echo "test-version=32.2.2" >> $GITHUB_OUTPUT
elif [[ ${{ matrix.electron }} == '33' ]]; then
echo "test-version=33.0.2" >> $GITHUB_OUTPUT
fi
- name: Setup env
uses: ./.github/actions/setup-env
Expand Down Expand Up @@ -82,7 +92,7 @@ jobs:

name: test ${{ matrix.os }}-v${{ needs.build.outputs.test-version }}
steps:

- name: Test build
uses: ./.github/actions/test-build
with:
Expand Down
18 changes: 14 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,21 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Resolve Electron version for test
- name: Resolve Electron version from major
id: electron-test-version
uses: ./.github/actions/get-electron-version
with:
electron: '${{ inputs.build-version }}'
shell: bash
run: |
if [[ ${{ inputs.build-version }} == '29' ]]; then
echo "test-version=29.4.6" >> $GITHUB_OUTPUT
elif [[ ${{ inputs.build-version }} == '30' ]]; then
echo "test-version=30.5.1" >> $GITHUB_OUTPUT
elif [[ ${{ inputs.build-version }} == '31' ]]; then
echo "test-version=31.7.2" >> $GITHUB_OUTPUT
elif [[ ${{ inputs.build-version }} == '32' ]]; then
echo "test-version=32.2.2" >> $GITHUB_OUTPUT
elif [[ ${{ inputs.build-version }} == '33' ]]; then
echo "test-version=33.0.2" >> $GITHUB_OUTPUT
fi
- name: Setup env
uses: ./.github/actions/setup-env
Expand Down

0 comments on commit 56aaf4a

Please sign in to comment.