Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: force build website before e2e tests #7

Merged
merged 2 commits into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 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 @@ -33,9 +34,10 @@ jobs:
node-version-file: .nvmrc
cache: 'pnpm'
- name: Setup dependencies
run: pnpm install --frozen-lockfile
# Install Cypress dependencies
- run: pnpm cypress install --force
run: |
pnpm install --frozen-lockfile
pnpm cypress install --force
- uses: nrwl/nx-set-shas@v4
- run: pnpm exec nx affected --parallel 3 --target lint test build
- run: pnpm exec nx build haqq-website
- run: pnpm exec nx affected --parallel 1 --target e2e-ci
5 changes: 1 addition & 4 deletions .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@ name: 'CodeQL'
on:
push:
branches:
- dev
- prod
- main
pull_request:
branches:
- dev
schedule:
- cron: '0 8 * * 1'
merge_group:
Expand Down
Loading