-
Notifications
You must be signed in to change notification settings - Fork 637
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into @christian/upgrade-rn
- Loading branch information
Showing
48 changed files
with
742 additions
and
471 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
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
50 changes: 14 additions & 36 deletions
50
.github/workflows/macstadium-clear-cache-all-instances.yml
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 |
---|---|---|
@@ -1,40 +1,18 @@ | ||
name: Clear macstadium cache (All instances) | ||
on: [ workflow_dispatch] | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
clear-cache-ci-1: | ||
runs-on: ["CI-1"] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/clear-cache | ||
clear-cache-ci-2: | ||
runs-on: ["CI-2"] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/clear-cache | ||
clear-cache-ci-3: | ||
runs-on: ["CI-3"] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/clear-cache | ||
clear-cache-ci-4: | ||
runs-on: ["CI-4"] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/clear-cache | ||
clear-cache-ci-5: | ||
runs-on: ["CI-5"] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/clear-cache | ||
clear-cache-ci-6: | ||
runs-on: ["CI-6"] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/clear-cache | ||
clear-cache-ci-7: | ||
runs-on: ["CI-7"] | ||
clear-cache: | ||
runs-on: ["CI-7", "CI-8", "CI-9"] | ||
strategy: | ||
matrix: | ||
instance: [CI-7, CI-8, CI-9] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/clear-cache | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
|
||
- name: Clear cache | ||
uses: ./.github/actions/clear-cache |
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 |
---|---|---|
|
@@ -4,64 +4,64 @@ on: [pull_request, workflow_dispatch] | |
jobs: | ||
ios-e2e: | ||
runs-on: ["self-hosted"] | ||
# Cancel current builds if there's a newer commit on the same branch | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
permissions: | ||
contents: read | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up github keys | ||
run: git config core.sshCommand "ssh -i ~/.ssh/id_ed25519 -F /dev/null" | ||
- name: clean ios app step | ||
run: yarn clean:ios > /dev/null 2>&1 || true | ||
run: git config core.sshCommand "ssh -i ~/.ssh/id_ed25519 -F /dev/null" | ||
|
||
- name: Clean iOS app | ||
run: yarn clean:ios > /dev/null 2>&1 || true | ||
|
||
- name: Set up ENV vars & scripts | ||
env: | ||
CI_SCRIPTS: ${{ secrets.CI_SCRIPTS }} | ||
run: | | ||
# read local env vars | ||
source ~/.bashrc | ||
# fetch env vars | ||
git clone [email protected]:rainbow-me/rainbow-env.git | ||
# unpack dotenv | ||
mv rainbow-env/dotenv .env && rm -rf rainbow-env | ||
# run CI scripts | ||
mv rainbow-env/dotenv .env && rm -rf rainbow-env | ||
eval $CI_SCRIPTS | ||
# tweak dotenv for e2e | ||
sed -i''-e "s/\IS_TESTING=false/IS_TESTING=true/" .env && rm -f .env-e | ||
- name: Install deps via Yarn | ||
sed -i'' -e "s/IS_TESTING=false/IS_TESTING=true/" .env && rm -f .env-e | ||
- name: Cache Yarn dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.cache/yarn | ||
node_modules | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
- name: Install dependencies | ||
run: yarn setup-ci | ||
|
||
- name: Check for frozen lockfile | ||
run: yarn check-lockfile | ||
|
||
- name: Audit CI | ||
run: yarn audit-ci --config audit-ci.jsonc | ||
run: yarn audit-ci --config audit-ci.jsonc | ||
|
||
- name: Lint | ||
run: yarn lint:ci | ||
|
||
- name: Install Pods | ||
run: yarn install-pods | ||
|
||
- name: Rebuild detox cache | ||
run: ./node_modules/.bin/detox clean-framework-cache && ./node_modules/.bin/detox build-framework-cache | ||
|
||
- name: Remove old Detox artifacts | ||
run: rm -rf ./artifacts/ | ||
- name: Install pods | ||
run: yarn install-pods | ||
|
||
- name: Build the app in release mode | ||
run: ./node_modules/.bin/detox build --configuration ios.sim.release | xcpretty --color | ||
|
||
- name: Run iOS e2e tests with retry | ||
# change the '5' here to how many times you want the tests to rerun on failure | ||
run: ./scripts/run-retry-tests.sh 3 | ||
|
||
- name: Upload Test Artifacts | ||
if: failure() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: detox-artifacts | ||
path: artifacts/** | ||
|
||
# change the '3' here to how many times you want the tests to rerun on failure | ||
- name: Run iOS e2e tests with retry | ||
run: ./scripts/run-retry-tests.sh 3 |
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 |
---|---|---|
|
@@ -5,15 +5,19 @@ on: | |
jobs: | ||
rebase: | ||
name: Rebase | ||
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase') && github.event.comment.author_association == 'MEMBER' | ||
if: > | ||
github.event.issue.pull_request != null && | ||
contains(github.event.comment.body, '/rebase') && | ||
github.event.comment.author_association == 'MEMBER' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout the latest code | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
fetch-depth: 0 # otherwise, you will fail to push refs to dest repo | ||
- name: Automatic Rebase | ||
uses: cirrus-actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
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
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
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
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
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
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
Oops, something went wrong.