From e4b0c16b7661a7e4c5d29e6b69868749303d7b4f Mon Sep 17 00:00:00 2001 From: Giuseppe Setem Date: Mon, 27 May 2024 13:23:26 -0300 Subject: [PATCH] chore: disable all github actions --- .github/actions/setup-monorepo/action.yml | 114 +++++----- .../workflows/development-native-release.yml | 62 +++--- .github/workflows/pr-ota-preview.yml | 60 +++--- .github/workflows/pr-test.yml | 202 +++++++++--------- .github/workflows/publish-native-release.yml | 62 +++--- .github/workflows/publish-ota-release.yml | 88 ++++---- 6 files changed, 294 insertions(+), 294 deletions(-) diff --git a/.github/actions/setup-monorepo/action.yml b/.github/actions/setup-monorepo/action.yml index c545a29..28fd261 100644 --- a/.github/actions/setup-monorepo/action.yml +++ b/.github/actions/setup-monorepo/action.yml @@ -1,57 +1,57 @@ -name: Setup Monorepo -description: Prepare and install everything for the monorepo - -inputs: - node-version: - description: Version of Node to use - default: 18.15.0 - - pnpm-version: - description: Version of pnpm to use - default: 8.1.0 - - eas-version: - description: Version of EAS CLI to use - default: latest - - expo-version: - description: Version of Expo CLI to use - default: latest - - expo-token: - description: Expo token to authenticate with - required: false - -runs: - using: composite - steps: - - - name: ๐Ÿ— Setup PNPM - uses: pnpm/action-setup@v2 - with: - version: ${{ inputs.pnpm-version }} - - - name: ๐Ÿ— Setup Node - uses: actions/setup-node@v3 - with: - node-version: ${{ inputs.node-version }} - cache: pnpm - - - name: ๐Ÿ— Setup Expo - uses: expo/expo-github-action@v7 - with: - eas-version: ${{ inputs.eas-version }} - expo-version: ${{ inputs.expo-version }} - token: ${{ inputs.expo-token }} - - - name: ๐Ÿ“ฆ Install dependencies - run: pnpm install - shell: bash - - - name: โ™ป๏ธ Restore cache - uses: actions/cache@v3 - with: - path: node_modules/.cache/turbo - key: turbo-${{ runner.os }}-${{ github.job }}-${{ github.sha }} - restore-keys: | - turbo-${{ runner.os }}-${{ github.job }} +# name: Setup Monorepo +# description: Prepare and install everything for the monorepo + +# inputs: +# node-version: +# description: Version of Node to use +# default: 18.15.0 + +# pnpm-version: +# description: Version of pnpm to use +# default: 8.1.0 + +# eas-version: +# description: Version of EAS CLI to use +# default: latest + +# expo-version: +# description: Version of Expo CLI to use +# default: latest + +# expo-token: +# description: Expo token to authenticate with +# required: false + +# runs: +# using: composite +# steps: + +# - name: ๐Ÿ— Setup PNPM +# uses: pnpm/action-setup@v2 +# with: +# version: ${{ inputs.pnpm-version }} + +# - name: ๐Ÿ— Setup Node +# uses: actions/setup-node@v3 +# with: +# node-version: ${{ inputs.node-version }} +# cache: pnpm + +# - name: ๐Ÿ— Setup Expo +# uses: expo/expo-github-action@v7 +# with: +# eas-version: ${{ inputs.eas-version }} +# expo-version: ${{ inputs.expo-version }} +# token: ${{ inputs.expo-token }} + +# - name: ๐Ÿ“ฆ Install dependencies +# run: pnpm install +# shell: bash + +# - name: โ™ป๏ธ Restore cache +# uses: actions/cache@v3 +# with: +# path: node_modules/.cache/turbo +# key: turbo-${{ runner.os }}-${{ github.job }}-${{ github.sha }} +# restore-keys: | +# turbo-${{ runner.os }}-${{ github.job }} diff --git a/.github/workflows/development-native-release.yml b/.github/workflows/development-native-release.yml index 9a5adc6..e43e045 100644 --- a/.github/workflows/development-native-release.yml +++ b/.github/workflows/development-native-release.yml @@ -1,36 +1,36 @@ -name: Development - Native Release +# name: Development - Native Release -on: - workflow_dispatch: - inputs: - platform: - description: Platform to build for (all/android/ios) - type: choice - required: true - default: all - options: - - all - - android - - ios +# on: +# workflow_dispatch: +# inputs: +# platform: +# description: Platform to build for (all/android/ios) +# type: choice +# required: true +# default: all +# options: +# - all +# - android +# - ios -jobs: - native-release-mobile: - runs-on: ubuntu-latest - env: - TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} - TURBO_TEAM: ${{ secrets.TURBO_TEAM }} - steps: - - name: ๐Ÿ— Setup repository - uses: actions/checkout@v3 +# jobs: +# native-release-mobile: +# runs-on: ubuntu-latest +# env: +# TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} +# TURBO_TEAM: ${{ secrets.TURBO_TEAM }} +# steps: +# - name: ๐Ÿ— Setup repository +# uses: actions/checkout@v3 - - name: ๐Ÿ— Setup monorepo - uses: ./.github/actions/setup-monorepo - with: - expo-token: ${{ secrets.EXPO_TOKEN }} +# - name: ๐Ÿ— Setup monorepo +# uses: ./.github/actions/setup-monorepo +# with: +# expo-token: ${{ secrets.EXPO_TOKEN }} - - name: ๐Ÿ“ฆ Build packages for mobile - run: pnpm run build:mobile +# - name: ๐Ÿ“ฆ Build packages for mobile +# run: pnpm run build:mobile - - name: ๐Ÿš€ Build for mobile - working-directory: apps/mobile - run: eas build --non-interactive --wait --platform=${{ github.event.inputs.platform }} --profile=development +# - name: ๐Ÿš€ Build for mobile +# working-directory: apps/mobile +# run: eas build --non-interactive --wait --platform=${{ github.event.inputs.platform }} --profile=development diff --git a/.github/workflows/pr-ota-preview.yml b/.github/workflows/pr-ota-preview.yml index 76defb2..1434b50 100644 --- a/.github/workflows/pr-ota-preview.yml +++ b/.github/workflows/pr-ota-preview.yml @@ -1,37 +1,37 @@ -name: Pull Request - OTA Preview +# name: Pull Request - OTA Preview -on: - pull_request: - types: [opened, synchronize] +# on: +# pull_request: +# types: [opened, synchronize] -concurrency: - group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }} - cancel-in-progress: true +# concurrency: +# group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }} +# cancel-in-progress: true -jobs: - preview-mobile: - runs-on: ubuntu-latest - env: - TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} - TURBO_TEAM: ${{ secrets.TURBO_TEAM }} - steps: - - name: ๐Ÿ— Setup repository - uses: actions/checkout@v3 +# jobs: +# preview-mobile: +# runs-on: ubuntu-latest +# env: +# TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} +# TURBO_TEAM: ${{ secrets.TURBO_TEAM }} +# steps: +# - name: ๐Ÿ— Setup repository +# uses: actions/checkout@v3 - - name: ๐Ÿ— Setup monorepo - uses: ./.github/actions/setup-monorepo - with: - expo-token: ${{ secrets.EXPO_TOKEN }} +# - name: ๐Ÿ— Setup monorepo +# uses: ./.github/actions/setup-monorepo +# with: +# expo-token: ${{ secrets.EXPO_TOKEN }} - - name: ๐Ÿ“ฆ Build packages for mobile - run: pnpm run build:mobile +# - name: ๐Ÿ“ฆ Build packages for mobile +# run: pnpm run build:mobile - - name: ๐Ÿš€ Publish update for mobile - working-directory: apps/mobile - run: eas update --non-interactive --channel=development --message=pr-${{ github.event.number }} +# - name: ๐Ÿš€ Publish update for mobile +# working-directory: apps/mobile +# run: eas update --non-interactive --channel=development --message=pr-${{ github.event.number }} - - name: ๐Ÿ’ฌ Comment update for mobile - uses: expo/expo-github-action/preview-comment@v7 - with: - project: apps/mobile - channel: development +# - name: ๐Ÿ’ฌ Comment update for mobile +# uses: expo/expo-github-action/preview-comment@v7 +# with: +# project: apps/mobile +# channel: development diff --git a/.github/workflows/pr-test.yml b/.github/workflows/pr-test.yml index a9ac000..e118921 100644 --- a/.github/workflows/pr-test.yml +++ b/.github/workflows/pr-test.yml @@ -1,101 +1,101 @@ -name: Pull Request - Test - -on: - pull_request: - types: [opened, synchronize] - -concurrency: - group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - test-unit: - runs-on: ubuntu-latest - env: - TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} - TURBO_TEAM: ${{ secrets.TURBO_TEAM }} - - steps: - - name: ๐Ÿ— Setup repository - uses: actions/checkout@v3 - - - name: ๐Ÿ— Setup monorepo - uses: ./.github/actions/setup-monorepo - - - name: ๐Ÿ— Find current PR Number - uses: jwalton/gh-find-current-pr@v1 - id: find-current-pr-number - - - name: โœ… Lint packages - run: pnpm run lint - - - name: ๐Ÿ“ฆ Build packages - run: pnpm run build - - - name: ๐Ÿงช Test repo - run: pnpm run test - - test-e2e: - runs-on: macos-latest - env: - DEVELOPER_DIR: /Applications/Xcode.app - TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} - TURBO_TEAM: ${{ secrets.TURBO_TEAM }} - HOST: '0.0.0.0' - PORT: '4000' - API_URL: 'http://localhost:4000' - - steps: - - name: ๐Ÿ— Setup repository - uses: actions/checkout@v3 - - - name: ๐Ÿ— Setup monorepo - uses: ./.github/actions/setup-monorepo - - - name: ๐Ÿ— Setup detox cache - id: cache-detox-build - uses: actions/cache@v3 - with: - path: apps/mobile/ios/build - key: ${{ runner.os }}-detox-ios-build - restore-keys: | - ${{ runner.os }}-detox-ios-build - - - name: ๐Ÿ— Setup pods cache - uses: actions/cache@v3 - id: cache-pod - with: - path: apps/mobile/ios/Pods - key: cache-pod-${{ hashFiles('**/Podfile.lock') }} - - - uses: JarvusInnovations/background-action@v1 - name: ๐Ÿ“ฆ Start API - with: - working-directory: apps/api - wait-on: | - ${{ env.API_URL }} - run: | - pnpm build - pnpm start - - - name: ๐Ÿ— Setup cocoapods, xcode, and homebrew - run: | - gem update cocoapods xcodeproj - brew tap wix/brew - brew install applesimutils - - - name: ๐Ÿ“ฆ Pre-build ios - working-directory: apps/mobile - run: pnpx expo prebuild - - - name: ๐Ÿ“ฆ Install dependencies - working-directory: apps/mobile/ios - run: pod install --no-repo-update - - - name: ๐Ÿ“ฆ Build app for iOS - working-directory: apps/mobile - run: EXPO_USE_UPDATES=0 pnpm run e2e:ios:build - - - name: ๐Ÿงช E2E for iOS - working-directory: apps/mobile - run: pnpm run e2e:ios:test +# name: Pull Request - Test + +# on: +# pull_request: +# types: [opened, synchronize] + +# concurrency: +# group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }} +# cancel-in-progress: true + +# jobs: +# test-unit: +# runs-on: ubuntu-latest +# env: +# TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} +# TURBO_TEAM: ${{ secrets.TURBO_TEAM }} + +# steps: +# - name: ๐Ÿ— Setup repository +# uses: actions/checkout@v3 + +# - name: ๐Ÿ— Setup monorepo +# uses: ./.github/actions/setup-monorepo + +# - name: ๐Ÿ— Find current PR Number +# uses: jwalton/gh-find-current-pr@v1 +# id: find-current-pr-number + +# - name: โœ… Lint packages +# run: pnpm run lint + +# - name: ๐Ÿ“ฆ Build packages +# run: pnpm run build + +# - name: ๐Ÿงช Test repo +# run: pnpm run test + +# test-e2e: +# runs-on: macos-latest +# env: +# DEVELOPER_DIR: /Applications/Xcode.app +# TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} +# TURBO_TEAM: ${{ secrets.TURBO_TEAM }} +# HOST: '0.0.0.0' +# PORT: '4000' +# API_URL: 'http://localhost:4000' + +# steps: +# - name: ๐Ÿ— Setup repository +# uses: actions/checkout@v3 + +# - name: ๐Ÿ— Setup monorepo +# uses: ./.github/actions/setup-monorepo + +# - name: ๐Ÿ— Setup detox cache +# id: cache-detox-build +# uses: actions/cache@v3 +# with: +# path: apps/mobile/ios/build +# key: ${{ runner.os }}-detox-ios-build +# restore-keys: | +# ${{ runner.os }}-detox-ios-build + +# - name: ๐Ÿ— Setup pods cache +# uses: actions/cache@v3 +# id: cache-pod +# with: +# path: apps/mobile/ios/Pods +# key: cache-pod-${{ hashFiles('**/Podfile.lock') }} + +# - uses: JarvusInnovations/background-action@v1 +# name: ๐Ÿ“ฆ Start API +# with: +# working-directory: apps/api +# wait-on: | +# ${{ env.API_URL }} +# run: | +# pnpm build +# pnpm start + +# - name: ๐Ÿ— Setup cocoapods, xcode, and homebrew +# run: | +# gem update cocoapods xcodeproj +# brew tap wix/brew +# brew install applesimutils + +# - name: ๐Ÿ“ฆ Pre-build ios +# working-directory: apps/mobile +# run: pnpx expo prebuild + +# - name: ๐Ÿ“ฆ Install dependencies +# working-directory: apps/mobile/ios +# run: pod install --no-repo-update + +# - name: ๐Ÿ“ฆ Build app for iOS +# working-directory: apps/mobile +# run: EXPO_USE_UPDATES=0 pnpm run e2e:ios:build + +# - name: ๐Ÿงช E2E for iOS +# working-directory: apps/mobile +# run: pnpm run e2e:ios:test diff --git a/.github/workflows/publish-native-release.yml b/.github/workflows/publish-native-release.yml index 890e4dd..2091a62 100644 --- a/.github/workflows/publish-native-release.yml +++ b/.github/workflows/publish-native-release.yml @@ -1,36 +1,36 @@ -name: Publish - Native Release +# name: Publish - Native Release -on: - workflow_dispatch: - inputs: - platform: - description: Platform to build for (all/android/ios) - type: choice - required: true - default: all - options: - - all - - android - - ios +# on: +# workflow_dispatch: +# inputs: +# platform: +# description: Platform to build for (all/android/ios) +# type: choice +# required: true +# default: all +# options: +# - all +# - android +# - ios -jobs: - native-release-mobile: - runs-on: ubuntu-latest - env: - TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} - TURBO_TEAM: ${{ secrets.TURBO_TEAM }} - steps: - - name: ๐Ÿ— Setup repository - uses: actions/checkout@v3 +# jobs: +# native-release-mobile: +# runs-on: ubuntu-latest +# env: +# TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} +# TURBO_TEAM: ${{ secrets.TURBO_TEAM }} +# steps: +# - name: ๐Ÿ— Setup repository +# uses: actions/checkout@v3 - - name: ๐Ÿ— Setup monorepo - uses: ./.github/actions/setup-monorepo - with: - expo-token: ${{ secrets.EXPO_TOKEN }} +# - name: ๐Ÿ— Setup monorepo +# uses: ./.github/actions/setup-monorepo +# with: +# expo-token: ${{ secrets.EXPO_TOKEN }} - - name: ๐Ÿ“ฆ Build packages for mobile - run: pnpm run build:mobile +# - name: ๐Ÿ“ฆ Build packages for mobile +# run: pnpm run build:mobile - - name: ๐Ÿš€ Build for mobile - working-directory: apps/mobile - run: eas build --non-interactive --wait --platform=${{ github.event.inputs.platform }} --profile=production +# - name: ๐Ÿš€ Build for mobile +# working-directory: apps/mobile +# run: eas build --non-interactive --wait --platform=${{ github.event.inputs.platform }} --profile=production diff --git a/.github/workflows/publish-ota-release.yml b/.github/workflows/publish-ota-release.yml index b9336e8..5e774db 100644 --- a/.github/workflows/publish-ota-release.yml +++ b/.github/workflows/publish-ota-release.yml @@ -1,51 +1,51 @@ -name: Publish - OTA Release +# name: Publish - OTA Release -on: - workflow_dispatch: - push: - branches: - - 'main' +# on: +# workflow_dispatch: +# push: +# branches: +# - 'main' -concurrency: - group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }} - cancel-in-progress: true +# concurrency: +# group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }} +# cancel-in-progress: true -jobs: - release-mobile: - runs-on: ubuntu-latest - env: - TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} - TURBO_TEAM: ${{ secrets.TURBO_TEAM }} - steps: - - name: ๐Ÿ— Setup repository - uses: actions/checkout@v3 +# jobs: +# release-mobile: +# runs-on: ubuntu-latest +# env: +# TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} +# TURBO_TEAM: ${{ secrets.TURBO_TEAM }} +# steps: +# - name: ๐Ÿ— Setup repository +# uses: actions/checkout@v3 - - name: ๐Ÿ— Setup monorepo - uses: ./.github/actions/setup-monorepo - with: - expo-token: ${{ secrets.EXPO_TOKEN }} +# - name: ๐Ÿ— Setup monorepo +# uses: ./.github/actions/setup-monorepo +# with: +# expo-token: ${{ secrets.EXPO_TOKEN }} - - name: ๐Ÿ“ฆ Build packages for mobile - run: pnpm run build:mobile +# - name: ๐Ÿ“ฆ Build packages for mobile +# run: pnpm run build:mobile - - name: ๐Ÿš€ Publish production update for mobile - working-directory: apps/mobile - run: eas update --non-interactive --channel=production --message=release-${{ github.sha }} +# - name: ๐Ÿš€ Publish production update for mobile +# working-directory: apps/mobile +# run: eas update --non-interactive --channel=production --message=release-${{ github.sha }} - # release-api: - # runs-on: ubuntu-latest - # env: - # TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} - # TURBO_TEAM: ${{ secrets.TURBO_TEAM }} - # RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }} - # steps: - # - name: ๐Ÿ— Setup repository - # uses: actions/checkout@v3 - # - name: ๐Ÿ— Setup monorepo - # uses: ./.github/actions/setup-monorepo - # - name: ๐Ÿ— Setup Railway - # run: pnpm install --global @railway/cli@2.1.0 - # - name: ๐Ÿ“ฆ Build packages for api - # run: pnpm run build:api - # - name: ๐Ÿš€ Publish production update for api - # run: RAILWAY_TOKEN=$RAILWAY_TOKEN railway up +# # release-api: +# # runs-on: ubuntu-latest +# # env: +# # TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} +# # TURBO_TEAM: ${{ secrets.TURBO_TEAM }} +# # RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }} +# # steps: +# # - name: ๐Ÿ— Setup repository +# # uses: actions/checkout@v3 +# # - name: ๐Ÿ— Setup monorepo +# # uses: ./.github/actions/setup-monorepo +# # - name: ๐Ÿ— Setup Railway +# # run: pnpm install --global @railway/cli@2.1.0 +# # - name: ๐Ÿ“ฆ Build packages for api +# # run: pnpm run build:api +# # - name: ๐Ÿš€ Publish production update for api +# # run: RAILWAY_TOKEN=$RAILWAY_TOKEN railway up