-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
👷 (tools): Add workflow to upgrade tools
- Loading branch information
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Leka - iOS Monorepo | ||
# Copyright 2023 APF France handicap | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: Upgrade tools | ||
|
||
on: | ||
pull_request: | ||
types: [labeled] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
upgrade_tools: | ||
if: contains(github.event.label.name, 'ci:upgrade_tools') | ||
name: Upgrade tools | ||
runs-on: [self-hosted, iOS] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 1 # shallow clone | ||
|
||
- name: Tools' versions | ||
run: | | ||
which fastlane | ||
fastlane --version | ||
which tuist | ||
tuist --version | ||
which swiftlint | ||
swiftlint --version | ||
which swiftformat | ||
swiftformat --version | ||
which bundle | ||
bundle --version | ||
- name: Upgrade brew | ||
run: | | ||
brew update | ||
brew upgrade | ||
brew cleanup -s --prune=all | ||
- name: Upgrade bundle | ||
run: | | ||
bundle update --bundler |