feat: release (#68) #299
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: E2E and Unit Tests | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
build-and-test: | |
name: Build and Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: 9.5.0 | |
- name: Create env file | |
run: | | |
touch .env | |
echo "NEXT_PUBLIC_API_BASE_URL=${{ secrets.NEXT_PUBLIC_API_BASE_URL }}" >> .env | |
- name: run Cypress and Jest | |
uses: cypress-io/github-action@v6 | |
with: | |
build: pnpm build | |
start: pnpm start | |
wait-on: 'http://localhost:5173' | |
command: pnpm test |