This repository has been archived by the owner on Oct 3, 2024. It is now read-only.
chore(deps): update dependency @clerk/clerk-sdk-node to v4.12.14 #406
Workflow file for this 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
name: CI for feature branches on pullrequest | |
env: | |
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | |
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} | |
CI: true | |
on: | |
pull_request: | |
branches: [main] | |
jobs: | |
pullrequest-job: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: packages/frontend | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v3.3.2 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Use Node.js | |
uses: actions/setup-node@v3.8.1 | |
with: | |
node-version-file: .nvmrc | |
- name: npm install | |
if: steps.cache-node_modules.outputs.cache-hit != 'true' | |
run: npm ci | |
working-directory: . # use the root directory | |
- name: Get installed Playwright version | |
id: playwright-version | |
run: echo "PLAYWRIGHT_VERSION=$(node -e "console.log(require('./package-lock.json').packages['node_modules/@playwright/test'].version)")" >> $GITHUB_ENV | |
working-directory: . # use the root directory | |
- name: Cache playwright binaries | |
uses: actions/cache@v3 | |
id: playwright-cache | |
with: | |
path: | | |
~/.cache/ms-playwright | |
key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }} | |
- name: lint | |
run: npm run lint | |
working-directory: . # use the root directory | |
- name: build | |
run: npm run build | |
- name: local test all packages | |
run: npm run test-local | |
working-directory: . # use the root directory | |
- name: deploy backend | |
env: | |
AMPT_API_KEY: ${{ secrets.AMPT_API_KEY }} | |
id: deploy-backend | |
working-directory: . # use the root directory | |
run: | | |
url=$(./scripts/deployAndGetUrl.sh ci) | |
echo aha $url | |
echo "BACKEND_URL=$url" >> "$GITHUB_OUTPUT" | |
- name: test backend integration | |
env: | |
AMPT_API_KEY: ${{ secrets.AMPT_API_KEY }} | |
id: backend-integration-test | |
working-directory: . # use the root directory | |
run: | | |
npx ampt run test --test-stage | |
- name: Pull Vercel Environment Information | |
run: npx vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} | |
- name: Build Project Artifacts | |
run: PUBLIC_BACKEND_URL=${{ steps.deploy-backend.outputs.BACKEND_URL}} PUBLIC_STAGE=dev npx vercel build --token=${{ secrets.VERCEL_TOKEN }} | |
- name: Deploy Project Artifacts to Vercel | |
id: deploy-frontend | |
run: | | |
url=$(npx vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}) | |
echo "FRONTEND_URL=$url" >> "$GITHUB_OUTPUT" | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps | |
if: steps.playwright-cache.outputs.cache-hit != 'true' | |
- name: Install Playwright Dependencies | |
run: npx playwright install-deps | |
if: steps.playwright-cache.outputs.cache-hit != 'true' | |
- name: run end to end tests | |
run: FRONTEND_URL=${{ steps.deploy-frontend.outputs.FRONTEND_URL}} npm run test:e2e |