-
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 #9 from BurnySc2/develop
Merge to master
- Loading branch information
Showing
144 changed files
with
23,676 additions
and
52,336 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 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 |
---|---|---|
|
@@ -8,6 +8,7 @@ on: | |
- fastapi_server/** | ||
- poetry.lock | ||
- svelte_frontend/** | ||
- .github/workflows/test_svelte_frontend.yml | ||
pull_request: | ||
branches: | ||
- master | ||
|
@@ -144,60 +145,6 @@ jobs: | |
cd ${{ env.SUBDIRECTORY }} | ||
npm install | ||
- name: Start MongoDB | ||
run: | | ||
docker run --rm -d --name mongodb_test -p 27017-27019:27017-27019 mongo:5.0.0 | ||
- name: Start Postgres | ||
run: | | ||
docker run --rm -d --name postgres_test -p 5432:5432 -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=changeme postgres:9.6.23-alpine3.14 | ||
- name: Run integration tests | ||
run: | | ||
poetry run pytest ${{ env.SUBDIRECTORY }}/test_frontend/test_integration.py | ||
deploy_frontend: | ||
env: | ||
SUBDIRECTORY: svelte_frontend | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
node: ['16'] | ||
runs-on: ${{ matrix.os }} | ||
needs: [test_frontend, test_e2e, test_integration] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Node ${{ matrix.node }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
|
||
- name: Cache npm | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-${{ matrix.node }}-${{ env.SUBDIRECTORY }}-node-production-${{ hashFiles('**/package-lock.json') }} | ||
|
||
- name: Install npm dependencies | ||
run: | | ||
cd ${{ env.SUBDIRECTORY }} | ||
npm install --production | ||
- name: Build frontend | ||
run: | | ||
cd ${{ env.SUBDIRECTORY }} | ||
npm run build | ||
- name: Deploy to GitHub Pages | ||
if: github.ref == 'refs/heads/master' | ||
uses: crazy-max/ghaction-github-pages@v2 | ||
with: | ||
committer: Deployer Bot <[email protected]> | ||
author: Deployer Bot <[email protected]> | ||
allow_empty_commit: false | ||
target_branch: gh-pages | ||
build_dir: ${{ env.SUBDIRECTORY }}/build | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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.