-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
413 changed files
with
7,773 additions
and
7,901 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,4 @@ | ||
module.exports = { | ||
root: true, | ||
extends: ['@raise/eslint-config'], | ||
}; |
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 @@ | ||
/.github/ @domdomegg |
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,55 @@ | ||
name: ci | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 30 | ||
strategy: | ||
matrix: | ||
node-version: [18] | ||
|
||
steps: | ||
- name: Checkout ${{ github.sha }} | ||
uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
# TODO: can we further improve caching performance by caching node_modules directly, | ||
# given our platform and node version is constant (changes are the usual reason not | ||
# to as installs may vary on this)? | ||
cache: 'npm' | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Set up Turborepo caching | ||
uses: dtinth/setup-github-actions-caching-for-turbo@v1 | ||
- name: Test, lint, build | ||
run: npx turbo test lint build | ||
|
||
# Deployment to dev environment | ||
- name: "server: Retrieve env for dev environment" | ||
if: github.ref == 'refs/heads/master' | ||
run: echo "$DEV_ENV" > server/src/env/dev.ts | ||
env: | ||
DEV_ENV: ${{ secrets.DEV_ENV }} | ||
- name: "Deploy to dev environment" | ||
if: github.ref == 'refs/heads/master' | ||
run: npx turbo deploy:dev | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
|
||
# Deployment to prod environment | ||
- name: "web: Deploy to prod environment" | ||
if: github.ref == 'refs/heads/master' | ||
run: npx turbo deploy:prod --filter web | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,4 +1,25 @@ | ||
# tmp dir created in MWA website build | ||
web-mwa/ | ||
|
||
# dependencies | ||
node_modules | ||
|
||
# build files | ||
.turbo | ||
.next | ||
.cache | ||
.npm | ||
.eslintcache | ||
.serverless | ||
.webpack | ||
.dynamodb | ||
coverage | ||
tmp | ||
|
||
# build output | ||
dist | ||
|
||
# debug | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# tmp dir created in MWA website build | ||
apps/web-mwa/ |
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"recommendations": [ | ||
"dbaeumer.vscode-eslint", | ||
"bradlc.vscode-tailwindcss" | ||
"bradlc.vscode-tailwindcss", | ||
"streetsidesoftware.code-spell-checker" | ||
] | ||
} |
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,20 +1,23 @@ | ||
{ | ||
"editor.tabSize": 2, | ||
// Standardize formatting to avoid noise in diffs | ||
"files.encoding": "utf8", | ||
"files.trimTrailingWhitespace": true, | ||
"files.insertFinalNewline": true, | ||
|
||
// Tell ESLint to validate TS and TSX | ||
"eslint.validate": [ | ||
"javascript", | ||
"javascriptreact", | ||
"typescript", | ||
"typescriptreact", | ||
], | ||
|
||
// Encourages fixing lint issues as you go | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": true, | ||
}, | ||
"workbench.startupEditor": "none", | ||
"git.enableSmartCommit": true, | ||
"redhat.telemetry.enabled": false, | ||
"css.format.enable": false, | ||
"eslint.format.enable": true, | ||
|
||
// Simplify git workflow | ||
"git.enableSmartCommit": true, | ||
} |
Oops, something went wrong.