Skip to content

Commit

Permalink
unify ci tests
Browse files Browse the repository at this point in the history
  • Loading branch information
CoolSpy3 committed Jul 28, 2024
1 parent a3c4818 commit 417b31a
Showing 1 changed file with 8 additions and 35 deletions.
43 changes: 8 additions & 35 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,15 @@ on:
branches: [ main ]

jobs:
testStableWebots:
test:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
include:
- webotsVersion: R2023b
- webotsVersion: R2024a
webotsTag: nightly_26_7_2024
runs-on: ${{ matrix.os }}

steps:
Expand All @@ -21,39 +25,8 @@ jobs:
id: setupWebots
uses: ./
with:
webotsVersion: R2023b

- name: Run Webots
run: $RUN_WEBOTS --sysinfo
shell: bash

- name: Display outputs
run: |
echo "RUN_WEBOTS: $RUN_WEBOTS"
echo "steps.setupWebots.outputs.bashCmd: ${{ steps.setupWebots.outputs.bashCmd }}"
echo "steps.setupWebots.outputs.home: ${{ steps.setupWebots.outputs.home }}"
echo "steps.setupWebots.outputs.binDir: ${{ steps.setupWebots.outputs.binDir }}"
echo "steps.setupWebots.outputs.bin: ${{ steps.setupWebots.outputs.bin }}"
echo "steps.setupWebots.outputs.cachePath: ${{ steps.setupWebots.outputs.cachePath }}"
shell: bash

testNightlyWebots:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
runs-on: ${{ matrix.os }}

steps:
- name: Checkout source
uses: actions/checkout@v3

- name: Setup Webots
id: setupWebots
uses: ./
with:
webotsVersion: R2024a
webotsTag: nightly_26_7_2024
webotsVersion: ${{ matrix.webotsVersion }}
webotsTag: ${{ contains(matrix, 'webotsTag') && matrix.webotsTag || '' }}

- name: Run Webots
run: $RUN_WEBOTS --sysinfo
Expand All @@ -72,7 +45,7 @@ jobs:
release:
# Only release from the main branch
if: github.ref == 'refs/heads/main'
needs: [testStableWebots, testNightlyWebots]
needs: test
runs-on: ubuntu-latest

steps:
Expand Down

0 comments on commit 417b31a

Please sign in to comment.