-
Notifications
You must be signed in to change notification settings - Fork 883
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix brave/brave-ios#8188: Add ability to run tests against the latest…
… iOS version. (brave/brave-ios#8180)
- Loading branch information
Showing
2 changed files
with
45 additions
and
2 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,41 @@ | ||
name: Test all | ||
|
||
on: | ||
pull_request: | ||
types: [ labeled, opened, synchronize ] | ||
|
||
jobs: | ||
test_all: | ||
if: >- | ||
(github.event_name == 'pull_request' && github.event.action == 'labeled' && github.event.label.name == 'CI/test_all') || | ||
(github.event_name == 'pull_request' && github.event.action == 'opened' && contains(github.event.pull_request.labels.*.name, 'CI/test_all')) || | ||
(github.event_name == 'pull_request' && github.event.action == 'synchronize' && contains(github.event.pull_request.labels.*.name, 'CI/test_all')) | ||
name: Test all supported major platform versions | ||
runs-on: macOS-13 | ||
env: | ||
# The XCode version to use. If you want to update it please refer to this document: | ||
# https://docs.github.com/en/actions/reference/specifications-for-github-hosted-runners#supported-software | ||
# and set proper version. | ||
XCODE_VERSION: "14.3.1" | ||
|
||
steps: | ||
- name: Select XCode | ||
# Use XCODE_VERSION env variable to set the XCode version you want. | ||
run: sudo xcode-select --switch /Applications/Xcode_${{ env.XCODE_VERSION }}.app | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Update node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18.x' | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/.npm | ||
key: npm-${{ hashFiles('package-lock.json') }} | ||
restore-keys: npm- | ||
- name: Run bootstrap script | ||
run: ./bootstrap.sh --ci | ||
- name: Run tests | ||
run: | | ||
set -o pipefail | ||
fastlane ios test test_all:true |
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