-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'development/ideaspace' into alicefate/pr1
- Loading branch information
Showing
128 changed files
with
3,127 additions
and
3,347 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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,20 @@ | ||
# Shared Packages | ||
packages/ @dev-launchers/platform-enablement | ||
|
||
# Ideaspace code | ||
apps/ideaspace/ @dev-launchers/ideaspace-team | ||
|
||
# Recruitment code | ||
apps/dev-recruiters/ @dev-launchers/dev-recruit-team | ||
|
||
# Website code | ||
apps/website/ @Enjoy2Live @pyxld-kris | ||
|
||
# Website code | ||
apps/app/ @Enjoy2Live @pyxld-kris | ||
|
||
# Code in the backend directory | ||
strapiv4/ @dev-launchers/backend-devs | ||
|
||
# Deps | ||
package.json @Enjoy2Live |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
name: deploy-staging-apps | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'staging/ideaspace' | ||
- 'staging/ideaspace[1-2]' | ||
- 'staging/recruitment' | ||
- 'staging/recruitment[1-2]' | ||
- 'staging/projects' | ||
- 'staging/projects[1-2]' | ||
- 'staging/website' | ||
- 'staging/website[1-2]' | ||
|
||
jobs: | ||
Publish: | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: read | ||
deployments: write | ||
|
||
steps: | ||
- name: Checkout 🛎 | ||
uses: actions/checkout@v3 | ||
|
||
- name: Extract branch name | ||
shell: bash | ||
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/} | sed 's/staging\///')" >>$GITHUB_OUTPUT | ||
id: extract_branch | ||
|
||
- name: Setup node env 🏗 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: lts/gallium | ||
cache: 'yarn' | ||
|
||
- name: Install dependencies 👨🏻💻 | ||
run: yarn --frozen-lockfile --silent | ||
|
||
- name: disable Image optimization | ||
shell: bash | ||
run: "sed -ie 's$unoptimized: false$unoptimized: true$g' ./apps/app/next.config.js" | ||
|
||
- name: Run build | ||
run: yarn workspace @devlaunchers/app build | ||
|
||
- name: Export | ||
run: yarn workspace @devlaunchers/app export | ||
|
||
- name: Publish | ||
uses: cloudflare/pages-action@v1 | ||
with: | ||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | ||
accountId: "b0eb1f5510cb71344976cb9cac51e2af" | ||
projectName: ${{ steps.extract_branch.outputs.branch }} | ||
directory: ./apps/app/out | ||
branch: main | ||
#I think this needs a bit of explanation. | ||
#I'm extracting the branch name and modifying it to only show what comes after staging/ | ||
#for example: if this action was triggered on staging/ideaspace the modified string becomes 'ideaspace'. | ||
|
||
#I'm doing this because in cloudflare pages dashboard I created these projects | ||
|
||
#- 'ideaspace' | ||
#- 'ideaspace1' | ||
#- 'ideaspace2' | ||
#- 'recruitment' | ||
#- 'recruitment1' | ||
#- 'recruitment2' | ||
#- 'projects' | ||
#- 'projects1' | ||
#- 'projects2' | ||
#- 'website' | ||
#- 'website1' | ||
#- 'website2' | ||
#and on every commit that touches the branches of these teams I deploy to the app from the branch name extraction step: Extract branch name |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Typecheck Tests | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'packages/UI/.storybook/**' | ||
- 'packages/UI/src/**' | ||
|
||
defaults: | ||
run: | ||
working-directory: packages/UI | ||
|
||
jobs: | ||
test: | ||
timeout-minutes: 60 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16.x' | ||
cache: yarn | ||
- name: Install dependencies | ||
run: yarn | ||
- name: Run typecheck tests | ||
run: yarn typecheck |
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
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.