Upgrade axios to v1.7.2 #66
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: ci-cd | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
pre-deployment-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Run component tests 🧪 | |
uses: cypress-io/github-action@v6 | |
env: | |
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | |
with: | |
command: npm run ct | |
- name: Run visual 👀 tests 🧪 | |
uses: cypress-io/github-action@v6 | |
env: | |
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | |
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }} | |
with: | |
install: false | |
command: npm run vt | |
- name: Run end-to-end tests 🧪 | |
uses: cypress-io/github-action@v6 | |
env: | |
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | |
with: | |
install: false | |
start: npm start | |
wait-on: 'http://localhost:3000' | |
command: npm run e2e | |
deploy: | |
needs: pre-deployment-tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: amondnet/vercel-action@v20 | |
with: | |
vercel-token: ${{ secrets.VERCEL_TOKEN }} | |
vercel-args: '--prod' | |
vercel-org-id: ${{ secrets.ORG_ID}} | |
vercel-project-id: ${{ secrets.PROJECT_ID}} | |
post-deployment-tests: | |
needs: deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Run e2e tests in production 🧪 | |
uses: cypress-io/github-action@v6 | |
env: | |
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | |
with: | |
command: npm run e2e:prod |