-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'app/ci/actions' into development
- Loading branch information
Showing
2 changed files
with
21 additions
and
37 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 |
---|---|---|
|
@@ -40,10 +40,6 @@ jobs: | |
run: | | ||
ls | ||
# - name: Test | ||
# run: | | ||
# pnpm test:ci --if-present | ||
|
||
Release: | ||
name: Release | ||
needs: [Build, DeployStagingWeb, DeployStagingDocs] | ||
|
@@ -79,10 +75,6 @@ jobs: | |
run: | | ||
cat apps/web/.env | ||
# - name: Test | ||
# run: | | ||
# pnpm test --if-present | ||
|
||
DeployStagingWeb: | ||
name: Deploy to Staging Web | ||
permissions: | ||
|
@@ -124,10 +116,6 @@ jobs: | |
run: | | ||
cd apps/web && pnpm build | ||
# - name: Stop server | ||
# run: | | ||
# sshpass -p "${{ secrets.LIGHTSAIL_SSH_PASS }}" ssh -o StrictHostKeyChecking=no [email protected] "cd apps/web && pm2 stop all" | ||
|
||
- name: Clean LightSail directory | ||
run: | | ||
sshpass -p "${{ secrets.LIGHTSAIL_SSH_PASS }}" ssh -o StrictHostKeyChecking=no [email protected] "rm -rf apps/web" | ||
|
@@ -151,7 +139,7 @@ jobs: | |
- name: Start server | ||
run: | | ||
sshpass -p "${{ secrets.LIGHTSAIL_SSH_PASS }}" ssh -o StrictHostKeyChecking=no [email protected] "cd apps/web && pm2 start pnpm --name "web" -- start" | ||
sshpass -p "${{ secrets.LIGHTSAIL_SSH_PASS }}" ssh -o StrictHostKeyChecking=no [email protected] "cd apps/web && pm2 stop web && pm2 delete web && pm2 start pnpm --name "web" -- start" | ||
- name: Remove web node_modules | ||
run: | | ||
|
@@ -197,10 +185,6 @@ jobs: | |
run: | | ||
cd apps/docs && pnpm build | ||
# - name: Stop server | ||
# run: | | ||
# sshpass -p "${{ secrets.LIGHTSAIL_SSH_PASS }}" ssh -o StrictHostKeyChecking=no [email protected] "cd apps/docs && pm2 stop all" | ||
|
||
- name: Clean LightSail directory | ||
run: | | ||
sshpass -p "${{ secrets.LIGHTSAIL_SSH_PASS }}" ssh -o StrictHostKeyChecking=no [email protected] "rm -rf apps/docs" | ||
|
@@ -220,7 +204,7 @@ jobs: | |
- name: Start server | ||
run: | | ||
sshpass -p "${{ secrets.LIGHTSAIL_SSH_PASS }}" ssh -o StrictHostKeyChecking=no [email protected] "cd apps/docs && pm2 start pnpm --name "docs" -- start -- -p 3001" | ||
sshpass -p "${{ secrets.LIGHTSAIL_SSH_PASS }}" ssh -o StrictHostKeyChecking=no [email protected] "cd apps/docs && pm2 stop docs && pm2 delete docs && pm2 start pnpm --name "docs" -- start -- -p 3001" | ||
- name: Remove docs node_modules | ||
run: | | ||
|
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,27 +1,27 @@ | ||
name: Playwright Tests | ||
on: | ||
push: | ||
branches: [ main, master ] | ||
branches: [main] | ||
pull_request: | ||
branches: [ main, master ] | ||
branches: [main] | ||
jobs: | ||
test: | ||
TestE2E: | ||
timeout-minutes: 60 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- name: Install dependencies | ||
run: npm install -g pnpm && pnpm install | ||
- name: Install Playwright Browsers | ||
run: pnpm exec playwright install --with-deps | ||
- name: Run Playwright tests | ||
run: pnpm exec playwright test | ||
- uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: playwright-report | ||
path: playwright-report/ | ||
retention-days: 30 | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- name: Install dependencies | ||
run: npm install -g pnpm && pnpm install | ||
- name: Install Playwright Browsers | ||
run: pnpm exec playwright install --with-deps | ||
- name: Run Playwright tests | ||
run: pnpm exec playwright test | ||
- uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: playwright-report | ||
path: playwright-report/ | ||
retention-days: 30 |