-
-
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.
- Loading branch information
Fabrizio Cafolla
committed
Sep 18, 2024
1 parent
3dcef75
commit bbf3c25
Showing
22 changed files
with
3,858 additions
and
2,051 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
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 |
---|---|---|
|
@@ -26,36 +26,20 @@ jobs: | |
- name: Check out code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Python 3.12 | ||
uses: actions/setup-python@v5 | ||
- name: Install devbox | ||
uses: jetify-com/[email protected] | ||
with: | ||
python-version: "3.12" | ||
cache: "pip" | ||
enable-cache: 'true' | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: "website/.nvmrc" | ||
cache-dependency-path: website/yarn.lock | ||
cache: "yarn" | ||
|
||
- name: Terraform Init | ||
id: terraform | ||
uses: ./.github/workflows/actions/terraform-init | ||
timeout-minutes: 5 | ||
with: | ||
- name: Setup | ||
timeout-minutes: 10 | ||
env: | ||
WORKSPACE: ${{ env.WORKSPACE }} | ||
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }} | ||
AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }} | ||
AWS_ROLE_NAME: ${{ secrets.AWS_ROLE_NAME }} | ||
|
||
- name: Setup | ||
timeout-minutes: 5 | ||
run: | | ||
make setup-project VIRTUAL_ENV=false | ||
make setup-website VIRTUAL_ENV=false | ||
- name: Test | ||
timeout-minutes: 5 | ||
run: | | ||
make tests | ||
devbox shell | ||
devbox run setup | ||
devbox run infra setup | ||
devbox run tests |
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,6 +5,5 @@ __pycache__ | |
.venv | ||
*.egg-info | ||
|
||
.*.env | ||
.env | ||
.env* | ||
.DS_Store |
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,35 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.12.0/.schema/devbox.schema.json", | ||
"packages": [ | ||
"[email protected]", | ||
"[email protected]", | ||
"[email protected]", | ||
"[email protected]", | ||
"[email protected]", | ||
"[email protected]" | ||
], | ||
"env": {}, | ||
"include": [], | ||
"shell": { | ||
"init_hook": [". .activate", "devbox run setup"], | ||
"scripts": { | ||
"infra": ["cd infrastructure && make $@ ; cd -"], | ||
"website": ["cd website && make $@ ; cd -"], | ||
"setup": [ | ||
"chmod +x scripts/*", | ||
"pip3 install -r requirements.txt", | ||
"pre-commit install", | ||
"devbox run website setup" | ||
], | ||
"deploy": ["./scripts/deploy.sh"], | ||
"doppler": ["./scripts/doppler.sh"], | ||
"lint": ["pre-commit run --all-files"], | ||
"tests": [ | ||
"devbox run lint", | ||
"devbox run website pages-check", | ||
"devbox run website build", | ||
"devbox run infra plan" | ||
] | ||
} | ||
} | ||
} |
Oops, something went wrong.