Skip to content

Commit

Permalink
Split steps
Browse files Browse the repository at this point in the history
  • Loading branch information
admin committed Sep 9, 2024
1 parent a389345 commit 29c6675
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,6 @@ jobs:
runs-on:
labels: [tart, macos]
steps:
- name: Print secret
env:
MACOS_CI_SETUP_TOKEN: ${{ secrets.MACOS_CI_SETUP_TOKEN }}
run: |
if [ -z $MACOS_CI_SETUP_TOKEN ]; then
echo "MACOS_CI_SETUP_TOKEN is not set !"
else
echo "MACOS_CI_SETUP_TOKEN is set..."
fi
- name: Clone macos-ci-setup repository
env:
MACOS_CI_SETUP_TOKEN: ${{ secrets.MACOS_CI_SETUP_TOKEN }}
Expand All @@ -36,17 +26,27 @@ jobs:
./run-vm-shell-command.sh sonoma-fake-pillarbox "rbenv global 3.3.2"
./run-vm-shell-command.sh sonoma-fake-pillarbox "gem install bundler -v 2.4.6"
./run-vm-shell-command.sh sonoma-fake-pillarbox "source ~/.zshrc"
setup-project:
needs: install-tools
runs-on:
labels: [tart, macos]
steps:
- name: Setup project
env:
MACOS_CI_SETUP_TOKEN: ${{ secrets.MACOS_CI_SETUP_TOKEN }}
run: |
./run-vm-shell-command.sh sonoma-fake-pillarbox "cd ~/_repo && rm -rf Configuration"
./run-vm-shell-command.sh sonoma-fake-pillarbox "cd ~/_repo && Scripts/checkout-configuration.sh https://[email protected]/SRGSSR/pillarbox-apple-configuration.git dad52a4242c7997c179073caec03b8d6e718fc03 Configuration"
./run-vm-shell-command.sh sonoma-fake-pillarbox "cd ~/_repo && make setup"
# check-quality:
# needs: install-tools
# runs-on:
# labels: [tart, macos]
# steps:
# - name: Run the quality check
# run: |
# ~/macos-ci-setup/run-vm-shell-command.sh sonoma-fake-pillarbox "cd ~/_repo && make check-quality"
check-quality:
needs: setup-project
runs-on:
labels: [tart, macos]
steps:
- name: Run the quality check
run: |
~/macos-ci-setup/run-vm-shell-command.sh sonoma-fake-pillarbox "cd ~/_repo && make check-quality"
run-streams:
needs: install-tools
Expand All @@ -58,7 +58,7 @@ jobs:
~/macos-ci-setup/run-vm-shell-command.sh sonoma-fake-pillarbox "cd ~/_repo && make test-streams-start"
test-ios:
needs: run-streams
needs: [run-streams, setup-project]
runs-on:
labels: [tart, macos]
steps:
Expand All @@ -67,7 +67,7 @@ jobs:
~/macos-ci-setup/run-vm-shell-command.sh sonoma-fake-pillarbox "cd ~/_repo && make test-ios"
test-tvos:
needs: run-streams
needs: [run-streams, setup-project]
runs-on:
labels: [tart, macos]
steps:
Expand All @@ -78,7 +78,7 @@ jobs:
clean:
runs-on:
labels: [tart, macos]
needs: [install-tools, run-streams, test-ios, test-tvos] # [install-tools, check-quality, run-streams, test-ios, test-tvos]
needs: [install-tools, setup-project, run-streams, test-ios, test-tvos] # [install-tools, setup-project, check-quality, run-streams, test-ios, test-tvos]
if: always()
steps:
- name: Stop and remove the VM
Expand Down

0 comments on commit 29c6675

Please sign in to comment.