fix(deps): update dependency nuxt to v3 #887
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
name: Before Merge | |
on: | |
push: | |
branches-ignore: | |
- master | |
- release/* | |
jobs: | |
lint-test-build: | |
name: Lint, Unit Test and Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Read .node-version | |
id: node-version | |
uses: juliangruber/read-file-action@v1 | |
with: | |
path: ./.node-version | |
- name: Use Node.js ${{ steps.node-version.outputs.content }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ steps.node-version.outputs.content }} | |
cache: 'npm' | |
- name: Install | |
run: npm ci | |
- name: Lint and Unit Test | |
run: | | |
npm run lint | |
npm run test | |
- name: Generate | |
run: npm run generate | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: dist | |
path: dist | |
if-no-files-found: error | |
test-e2e: | |
name: E2E Test | |
needs: lint-test-build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
browser: [ chrome, firefox, edge ] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Read .node-version | |
id: node-version | |
uses: juliangruber/read-file-action@v1 | |
with: | |
path: ./.node-version | |
- name: Use Node.js ${{ steps.node-version.outputs.content }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ steps.node-version.outputs.content }} | |
cache: 'npm' | |
- name: Download Artifact | |
uses: actions/download-artifact@master | |
with: | |
name: dist | |
path: dist | |
- name: E2E by Cypress | |
uses: cypress-io/github-action@v2 | |
with: | |
browser: ${{ matrix.browser }} | |
command: npm run e2e:ci | |
- uses: actions/upload-artifact@v2 | |
if: failure() | |
with: | |
name: cypress-${{ matrix.browser }} | |
path: | | |
cypress/videos | |
cypress/screenshots |