This repository has been archived by the owner on Aug 21, 2024. It is now read-only.
[Snyk] Security upgrade next from 10.2.0 to 12.0.8 #252
Workflow file for this run
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
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: Lint and Test | |
on: | |
pull_request: | |
branches: [main] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install | |
run: npm install | |
- name: Build | |
run: npm run build | |
env: | |
NEXT_PUBLIC_STRAPI_API_URL: ${{ secrets.NEXT_PUBLIC_STRAPI_API_URL }} | |
NEXT_IP_LOCATION_API_URL: ${{ secrets.NEXT_IP_LOCATION_API_URL}} | |
- name: Linting formatting | |
run: npm run lint:formatting | |
env: | |
CI: true | |
- name: Linting rules | |
run: npm run lint:rules | |
- name: Unit tests | |
run: npm run test:unit | |
env: | |
CI: true | |
- name: Cypress E2E | |
uses: cypress-io/github-action@v2 | |
env: | |
CI: true | |
NODE_ENV: production | |
with: | |
install: false | |
start: npm run start |