Bump @types/node from 22.8.7 to 22.9.0 #492
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: "CI" | |
on: | |
push: | |
branches: "*" | |
pull_request: | |
env: | |
cache-version: 1 | |
jobs: | |
build: | |
name: "Build" | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v4 | |
- name: "Cache NPM dependencies" | |
uses: actions/cache@v4 | |
with: | |
path: "~/.npm" | |
key: npm-dependencies-${{ runner.os }}-${{ env.cache-version }}-${{ hashFiles('package.json') }} | |
restore-keys: | | |
npm-dependencies-${{ runner.os }}-${{ env.cache-version }}-${{ hashFiles('package.json') }} | |
npm-dependencies-${{ runner.os }}-${{ env.cache-version }}- | |
- name: "Install NPM dependencies" | |
run: | | |
npm ci | |
- name: "Build" | |
run: | | |
npm run build | |
test: | |
name: "Test" | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
versions: [ | |
{node: "14", rollup: "3", vite: "4"}, | |
{node: "16", rollup: "3", vite: "4"}, | |
{node: "18", rollup: "4", vite: "5"}, | |
{node: "20", rollup: "4", vite: "5"}, | |
{node: "22", rollup: "4", vite: "5"}] | |
steps: | |
- name: "Checkout" | |
uses: actions/[email protected] | |
- name: "Setup Node.js" | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.versions.node }} | |
cache: 'npm' | |
- name: "Install NPM dependencies" | |
run: | | |
npm install | |
- name: "Install rollup & vite" | |
run: | | |
npm install rollup@${{ matrix.versions.rollup }} vite@${{ matrix.versions.vite }} | |
- name: "Run tests" | |
run: | | |
npm run test | |
- name: "Upload coverage results" | |
uses: coverallsapp/[email protected] | |
with: | |
parallel: true | |
close-coverage: | |
name: "Close parallel coverage" | |
runs-on: ubuntu-latest | |
needs: test | |
steps: | |
- name: "Close parallel coverage" | |
uses: coverallsapp/[email protected] | |
with: | |
parallel-finished: true | |
lint: | |
name: "Lint" | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v4 | |
- name: "Cache NPM dependencies" | |
uses: actions/cache@v4 | |
with: | |
path: "~/.npm" | |
key: npm-dependencies-${{ runner.os }}-${{ env.cache-version }}-${{ hashFiles('package.json') }} | |
restore-keys: | | |
npm-dependencies-${{ runner.os }}-${{ env.cache-version }}-${{ hashFiles('package.json') }} | |
npm-dependencies-${{ runner.os }}-${{ env.cache-version }}- | |
- name: "Install NPM dependencies" | |
run: | | |
npm ci | |
- name: "Lint" | |
run: | | |
npm run lint |