fix: robots tag (#186) #162
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: Playwright Preview | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
concurrency: | |
group: build-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
e2e: | |
timeout-minutes: 10 | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./web | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "18.x" | |
- name: Create env file | |
run: | | |
touch .env | |
echo VITE_API_KEY=${{ secrets.VITE_API_KEY }} >> .env | |
echo VITE_OVERVIEW_PKGS_URL=${{ secrets.VITE_OVERVIEW_PKGS_URL }} >> .env | |
echo VITE_TA_PKGS_URL=${{ secrets.VITE_TA_PKGS_URL }} >> .env | |
echo VITE_TA_TEST_PKG_URL=${{ secrets.VITE_TA_TEST_PKG_URL }} >> .env | |
echo VITE_SELECT_PKG_URL=${{ secrets.VITE_SELECT_PKG_URL }} >> .env | |
echo VITE_SITEMAP_PKGS_URL=${{ secrets.VITE_SITEMAP_PKGS_URL }} >> .env | |
echo VITE_AP_PKGS_URL=${{ secrets.VITE_AP_PKGS_URL }} >> .env | |
echo VITE_STATS_GH_TRENDS_BASE_URL=${{ secrets.VITE_STATS_GH_TRENDS_BASE_URL}} >> .env | |
- name: Install dependencies | |
run: npm ci | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps chromium | |
- name: Run Playwright tests | |
run: npx playwright test |