Skip to content

Commit

Permalink
ci: move e2e to separate job
Browse files Browse the repository at this point in the history
  • Loading branch information
olegshilov committed Jun 25, 2024
1 parent c600b5b commit 3bdf108
Showing 1 changed file with 24 additions and 5 deletions.
29 changes: 24 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true

env:
NEXT_PUBLIC_TURNSTILE_SITEKEY: 'e2e-sitekey'
GIT_COMMIT_SHA: ${{ github.sha }}

jobs:
main:
runs-on: ubuntu-latest
env:
NEXT_PUBLIC_TURNSTILE_SITEKEY: 'e2e-sitekey'
GIT_COMMIT_SHA: ${{ github.sha }}
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -34,8 +35,26 @@ jobs:
cache: 'pnpm'
- name: Setup dependencies
run: pnpm install --frozen-lockfile
# Install Cypress dependencies
- run: pnpm cypress install --force
- uses: nrwl/nx-set-shas@v4
- run: pnpm exec nx affected --parallel 3 --target lint test build
e2e:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: 'pnpm'
- name: Setup dependencies
run: |
pnpm install --frozen-lockfile
pnpm cypress install --force
- uses: nrwl/nx-set-shas@v4
- run: pnpm exec nx build haqq-website
- run: pnpm exec nx affected --parallel 1 --target e2e-ci

0 comments on commit 3bdf108

Please sign in to comment.