Skip to content

Bump vitest from 0.31.0 to 0.31.1 (#1052) #1036

Bump vitest from 0.31.0 to 0.31.1 (#1052)

Bump vitest from 0.31.0 to 0.31.1 (#1052) #1036

Workflow file for this run

# 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: Node.js CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
types: [opened, synchronize]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} # only if branch isn't master
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
cache: 'npm'
node-version-file: '.nvmrc'
- name: Install dependencies
run: npm i --legacy-peer-deps
- name: Lint
run: npm run lint
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
cache: 'npm'
node-version-file: '.nvmrc'
- name: Install dependencies
run: npm i --legacy-peer-deps
- name: Build
run: npm run build
- uses: actions/upload-artifact@v2
with:
name: build
path: build
test:
needs: [ lint, build ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
cache: 'npm'
node-version-file: '.nvmrc'
- name: Install dependencies
run: npm i --legacy-peer-deps
- uses: actions/download-artifact@v2
with:
name: build
path: build
- name: Test
run: npm test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}