-
-
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.
Merge pull request #5 from Team3256/refresh
fix refresh... lol
- Loading branch information
Showing
77 changed files
with
10,027 additions
and
5,277 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,54 @@ | ||
name: Setup Monorepo | ||
description: Prepare and install everything for the monorepo | ||
|
||
inputs: | ||
node-version: | ||
description: Version of Node to use | ||
default: 18.x | ||
|
||
pnpm-version: | ||
description: Version of pnpm to use | ||
default: 8.x | ||
|
||
eas-version: | ||
description: Version of EAS 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@v8 | ||
with: | ||
eas-version: ${{ inputs.eas-version }} | ||
token: ${{ inputs.expo-token }} | ||
|
||
- name: 📦 Install dependencies | ||
run: pnpm install | ||
shell: bash | ||
|
||
- name: ♻️ Restore cache | ||
uses: actions/cache@v3 | ||
with: | ||
key: turbo-${{ runner.os }}-${{ github.sha }} | ||
restore-keys: | | ||
turbo-${{ runner.os }} | ||
path: | | ||
node_modules/.cache/turbo | ||
apps/*/.turbo | ||
packages/*/.turbo |
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,59 @@ | ||
name: build | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
platform: | ||
description: Platform to build for (all/android/ios) | ||
type: choice | ||
required: true | ||
default: all | ||
options: | ||
- all | ||
- android | ||
- ios | ||
profile: | ||
description: EAS build profile (development/production) | ||
type: choice | ||
required: true | ||
default: development | ||
options: | ||
- development | ||
- production | ||
submit: | ||
description: Auto submit to the store? (production only) | ||
type: boolean | ||
required: false | ||
|
||
jobs: | ||
mobile: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 🏗 Setup repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: 🏗 Setup monorepo | ||
uses: ./.github/actions/setup-monorepo | ||
with: | ||
expo-token: ${{ secrets.EXPO_TOKEN }} | ||
|
||
- name: 👷 Build packages for mobile | ||
run: pnpm run -w build:mobile | ||
|
||
# You can remove this step if you already configured this | ||
# This project shouldn't be pre-configured with this ID, that's why its omitted | ||
- name: 👷 Configure project | ||
working-directory: apps/mobile | ||
run: | | ||
eas init --id d202a56f-0162-450d-af3b-a2d2e0678594 --force --non-interactive | ||
echo $(jq '.expo.runtimeVersion.policy = "sdkVersion"' app.json) > app.json | ||
- name: 🚀 Build mobile | ||
if: ${{ !github.event.inputs.submit || github.event.inputs.profile != 'production' }} | ||
working-directory: apps/mobile | ||
run: eas build --non-interactive --wait --platform=${{ github.event.inputs.platform }} --profile=${{ github.event.inputs.profile }} | ||
|
||
- name: 🚀 Build & submit mobile | ||
if: ${{ github.event.inputs.submit && github.event.inputs.profile != 'production' }} | ||
working-directory: apps/mobile | ||
run: eas build --non-interactive --wait --auto-submit --platform=${{ github.event.inputs.platform }} --profile=${{ github.event.inputs.profile }} |
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,38 @@ | ||
name: preview | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
mobile: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 🏗 Setup repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: 🏗 Setup monorepo | ||
uses: ./.github/actions/setup-monorepo | ||
with: | ||
expo-token: ${{ secrets.EXPO_TOKEN }} | ||
|
||
- name: 👷 Build packages | ||
run: pnpm run -w build:mobile | ||
|
||
# You can remove this step if you already configured this | ||
# This project shouldn't be pre-configured with this ID, that's why its omitted | ||
- name: 👷 Configure project | ||
working-directory: apps/mobile | ||
run: | | ||
eas init --id d202a56f-0162-450d-af3b-a2d2e0678594 --force --non-interactive | ||
echo $(jq '.expo.runtimeVersion.policy = "sdkVersion"' app.json) > app.json | ||
- name: 🚀 Create preview | ||
uses: expo/expo-github-action/preview@v8 | ||
with: | ||
working-directory: apps/mobile | ||
command: eas update --auto --branch=pr-${{ github.event.number }} |
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,33 @@ | ||
name: test | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
types: [opened, synchronize] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
packages: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- name: 🏗 Setup repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: 🏗 Setup monorepo | ||
uses: ./.github/actions/setup-monorepo | ||
|
||
- name: ✅ Lint packages | ||
run: pnpm run -w lint | ||
|
||
- name: 👷 Build packages | ||
run: pnpm run -w build | ||
|
||
- name: 🧪 Test packages | ||
run: pnpm run -w test |
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,37 +1,61 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
# Monorepo | ||
apps/*/credentials.json | ||
apps/*/build | ||
packages/*/build | ||
|
||
# dependencies | ||
node_modules | ||
.pnp | ||
.pnp.js | ||
|
||
# testing | ||
coverage | ||
|
||
# next.js | ||
.next/ | ||
.swc/ | ||
out/ | ||
build | ||
# Turborepo | ||
.turbo | ||
|
||
# expo | ||
# Expo | ||
.expo | ||
__generated__ | ||
web-build | ||
|
||
# misc | ||
# macOS | ||
.DS_Store | ||
*.pem | ||
dist | ||
|
||
# debug | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# local env files | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
# turbo | ||
.turbo | ||
|
||
# Node | ||
node_modules | ||
npm-debug.log | ||
yarn-error.log | ||
package-lock.json | ||
|
||
# Ruby | ||
.direnv | ||
|
||
# Emacs | ||
*~ | ||
|
||
# Vim | ||
.*.swp | ||
.*.swo | ||
.*.swn | ||
.*.swm | ||
|
||
# Sublime Text | ||
*.sublime-project | ||
*.sublime-workspace | ||
|
||
# Xcode | ||
*.pbxuser | ||
!default.pbxuser | ||
*.xccheckout | ||
*.xcscmblueprint | ||
xcuserdata | ||
|
||
# Android Studio | ||
*.iml | ||
.gradle | ||
.idea/libraries | ||
.idea/workspace.xml | ||
.idea/gradle.xml | ||
.idea/misc.xml | ||
.idea/modules.xml | ||
.idea/vcs.xml | ||
|
||
# Eclipse | ||
.project | ||
.settings | ||
|
||
# VSCode | ||
.history/ |
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 @@ | ||
node-linker=hoisted |
This file was deleted.
Oops, something went wrong.
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,21 @@ | ||
# The MIT License (MIT) | ||
|
||
Copyright (c) 2021-present Cedric van Putten <[email protected]> | ||
|
||
> Permission is hereby granted, free of charge, to any person obtaining a copy | ||
> of this software and associated documentation files (the "Software"), to deal | ||
> in the Software without restriction, including without limitation the rights | ||
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
> copies of the Software, and to permit persons to whom the Software is | ||
> furnished to do so, subject to the following conditions: | ||
> | ||
> The above copyright notice and this permission notice shall be included in | ||
> all copies or substantial portions of the Software. | ||
> | ||
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
> THE SOFTWARE. |
Oops, something went wrong.