Skip to content

chore(profile-form): update ProfileForm #2

chore(profile-form): update ProfileForm

chore(profile-form): update ProfileForm #2

name: deploy staging
on:
push:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 20.x.x
cache: npm
- run: npm ci
- run: npm run lint
- run: npm run lint:types
- run: npm run test
deploy:
needs: lint
runs-on: ubuntu-latest
concurrency:
group: staging
cancel-in-progress: true
steps:
- name: SSH Command
uses: D3rHase/ssh-command-action@v0.2.2
with:
# hostname / IP of the server
host: ${{ secrets.STAGING_SSH_HOST }}
user: ${{ secrets.STAGING_SSH_USERNAME }}
private_key: ${{ secrets.STAGING_SSH_PRIVATE_KEY }}
host_fingerprint: ${{ secrets.STAGING_SSH_FINGERPRINT }}
command: source ~/.nvm/nvm.sh; ~/deploy.sh
e2e:
needs: deploy
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20.x.x
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
env:
TEST_ENV_BASE_URL: https://staging.yourdomain.com
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30