Set cookie with location of request country #2565
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: Website | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
check_applicability: | |
name: Check applicability | |
runs-on: ubuntu-latest | |
outputs: | |
should_skip: ${{ steps.skip_check.outputs.should_skip }} | |
steps: | |
- id: skip_check | |
uses: fkirc/skip-duplicate-actions@v5 | |
with: | |
paths: '["website/**", "shared/**", ".github/workflows/website.yml"]' | |
skip_after_successful_duplicate: "false" | |
do_not_skip: '["push"]' | |
test: | |
name: Test website | |
needs: check_applicability | |
if: needs.check_applicability.outputs.should_skip != 'true' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Initialize repository | |
uses: ./.github/workflows/actions/init | |
- name: Run linters | |
run: npm run website:lint | |
- name: Run unit tests | |
run: npm run website:test:emulator | |
# TODO: re-enable | |
# - name: Run e2e tests | |
# run: npm run website:test:e2e:emulator | |
# | |
# - name: Deploy Playwright report to GitHub Pages | |
# uses: rossjrw/pr-preview-action@v1 | |
# if: always() | |
# with: | |
# source-dir: website/playwright-report/ | |
# preview-branch: gh-pages | |
# umbrella-dir: website-playwright-report | |
# action: auto | |
- name: Test build | |
# To use the emulator during the build, we need to rename the .env.development file to .env.production. | |
# Next.js doesn't now allow to use NODE_ENV=development in the build process. | |
run: | | |
mv website/.env.development website/.env.production | |
npm run website:build:emulator |