update package-lock #42
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 installation of node dependencies, cache/restore them, 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: CI | ||
on: | ||
push: | ||
branches: | ||
- '*' | ||
pull_request: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
jobs: | ||
lint-pr: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js 16.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.x | ||
cache: 'npm' | ||
- name: Update NPM | ||
run: npm install -g npm | ||
- name: NPM Install | ||
run: npm ci | ||
- name: Lint | ||
run: npm run lint | ||
build-pr: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js 16.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.x | ||
cache: 'npm' | ||
- name: Update NPM | ||
run: npm install -g npm | ||
- name: NPM Install | ||
run: npm ci | ||
- name: Build | ||
run: npm run build | ||
test-pr: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js 16.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.x | ||
cache: 'npm' | ||
- name: Update NPM | ||
run: npm install -g npm | ||
- name: NPM Install | ||
run: npm ci | ||
- name: Run unit tests | ||
working-directory: ./packages/Schedulely | ||
run: npx vitest run --coverage | ||
- name: Report Coverage | ||
if: always() # Also generate the report if tests are failing | ||
working-directory: ./packages/Schedulely | ||
uses: davelosert/vitest-coverage-report-action@v2 | ||
Check failure on line 68 in .github/workflows/ci.yml GitHub Actions / CIInvalid workflow file
|