-
Notifications
You must be signed in to change notification settings - Fork 2
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
Dominique Börner
committed
Mar 13, 2024
1 parent
0ede81a
commit 87d653c
Showing
6 changed files
with
139 additions
and
90 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,32 @@ | ||
name: Deploy to dev | ||
|
||
on: | ||
workflow_run: | ||
workflows: ["Testing - fox-deck-app", "Testing - fox-deck-api", "Build & Deploy - Documentation"] | ||
type: | ||
- completed | ||
|
||
jobs: | ||
# build and deploy the app | ||
deploy_app: | ||
runs-on: ubuntu-latest | ||
name: Build and deploy the app | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: npm run install:app | ||
- name: ⚙️ Build app | ||
run: npm run build:app | ||
- name: Print execution time | ||
run: echo "Time ${{ steps.adocbuild.outputs.time }}" | ||
- name: 📂 Upload fox-deck-app via SFTP | ||
uses: wlixcc/[email protected] | ||
with: | ||
username: ${{ secrets.FTP_DEV_USERNAME }} | ||
server: ${{ secrets.FTP_SERVER }} | ||
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
port: ${{ secrets.FTP_PORT }} | ||
local_path: './apps/fox-deck-app/dist/*' | ||
remote_path: '/var/www/dev' | ||
sftp_only: true |
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,34 @@ | ||
name: Build & Deploy - Documentation | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- "docs/**" | ||
branches: | ||
- master | ||
push: | ||
paths: | ||
- "docs/**" | ||
branches: | ||
- master | ||
|
||
jobs: | ||
# build and deploy the documentation | ||
deploy_docs: | ||
runs-on: ubuntu-latest | ||
name: Generate and deploy developer documentation | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: ⚙️ Build documentation | ||
run: npm run docs | ||
- name: 📂 Upload documentation via SFTP | ||
uses: wlixcc/[email protected] | ||
with: | ||
username: ${{ secrets.FTP_DEV_USERNAME }} | ||
server: ${{ secrets.FTP_SERVER }} | ||
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
port: ${{ secrets.FTP_PORT }} | ||
local_path: './docs/build/site/*' | ||
remote_path: '/var/www/docs' | ||
sftp_only: true |
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,28 @@ | ||
name: Testing - fox-deck-api | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
# testing the fox-deck frontend | ||
test_app: | ||
runs-on: ubuntu-latest | ||
env: | ||
|
||
defaults: | ||
run: | ||
working-directory: ./apps/fox-deck-api | ||
name: Run Unit-Tests | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18.x' | ||
- run: npm ci | ||
- run: npm run test:unit |
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,30 @@ | ||
name: Testing - fox-deck-app | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
# testing the fox-deck frontend | ||
test_app: | ||
runs-on: ubuntu-latest | ||
env: | ||
|
||
defaults: | ||
run: | ||
working-directory: ./apps/fox-deck-app | ||
name: Run Unit-Tests | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18.x' | ||
- name: Rename environment file | ||
run: mv .env.example .env | ||
- run: npm ci | ||
- run: npm run 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
This file was deleted.
Oops, something went wrong.