This repository has been archived by the owner on Oct 3, 2024. It is now read-only.
chore(deps): update dependency @clerk/clerk-js to v5 #1480
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] | |
concurrency: CI-STAGE-USER | |
jobs: | |
pullrequest-job: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4.0.2 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- uses: jorelali/setup-elm@v6 | |
with: | |
elm-version: 0.19.1 | |
- name: Use Node.js | |
uses: actions/setup-node@v4.0.3 | |
with: | |
node-version-file: .nvmrc | |
- name: npm install | |
if: steps.cache-node_modules.outputs.cache-hit != 'true' | |
run: npm ci | |
- 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 | |
- name: Cache playwright binaries | |
uses: actions/cache@v4 | |
id: playwright-cache | |
with: | |
path: | | |
~/.cache/ms-playwright | |
key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }} | |
- name: build elm frontend | |
run: npm run build-fe-dev | |
- name: test backend integration | |
env: | |
AMPT_API_KEY: ${{ secrets.AMPT_API_KEY }} | |
id: backend-integration-test | |
run: | | |
npx ampt run test --skip-update | |
- name: deploy backend | |
env: | |
AMPT_API_KEY: ${{ secrets.AMPT_API_KEY }} | |
id: deploy-backend | |
run: | | |
url=$(./scripts/deployAndGetUrl.sh ci) | |
echo aha $url | |
echo "AMPT_URL=$url" >> "$GITHUB_OUTPUT" | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps | |
working-directory: ./packages/e2e | |
if: steps.playwright-cache.outputs.cache-hit != 'true' | |
- name: Install Playwright Dependencies | |
run: npx playwright install-deps | |
working-directory: ./packages/e2e | |
if: steps.playwright-cache.outputs.cache-hit != 'true' | |
- name: run end to end tests | |
run: FRONTEND_URL=${{ steps.deploy-backend.outputs.AMPT_URL}} npm run test:e2e | |
working-directory: ./packages/e2e | |
- name: Archive code coverage results | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: e2e test rsults | |
path: packages/e2e/test-results/ |