Fix official stats for now #224
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: Test | |
on: [push] | |
env: | |
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1 # Skip downloading during yarn install | |
PLAYWRIGHT_BROWSERS_PATH: 0 # Places binaries to node_modules/@playwright/test | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: > | |
echo "[auth]" > .sentryclirc && | |
echo "token=${{ secrets.SENTRY_TOKEN }}" >> .sentryclirc && | |
echo "GEO_USER=${{ secrets.GEO_USER }}" >> .env.local && | |
echo "GEO_PW=${{ secrets.GEO_PW }}" >> .env.local && | |
echo "GEO_HOST=${{ secrets.GEO_HOST }}" >> .env.local && | |
echo "NEXT_PUBLIC_BASE_URL='http://localhost:3000'" >> .env.local | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: "18" | |
- run: npx playwright install-deps | |
- run: npm ci | |
- run: npx playwright install chromium | |
- run: npm run build | |
- run: npm start & | |
- run: npm test |