Remove wait-on #38
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: Continuous Integration | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20.10.0 | |
- name: Create .env file | |
run: echo "VITE_TOKEN=${{ secrets.VITE_TOKEN }}" > .env | |
- name: Install Dependencies | |
run: npm install | |
- name: Lint with ESLint | |
run: npm run lint | |
- name: Format with Prettier | |
run: npm run format | |
- name: Run tests with Cypress | |
uses: cypress-io/github-action@v6 | |
with: | |
start: npm run dev | |
browser: chrome | |
- name: Upload Cypress Screenshots | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: cypress-screenshots | |
path: cypress/screenshots/**/* | |
- name: Upload Cypress Videos | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: cypress-videos | |
path: cypress/videos/**/* |