Update dependency eslint to v8.57.0 #194
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: Node.js CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [12.x, 14.x, 16.x, 18.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup PNPM | |
uses: pnpm/action-setup@v2.2.2 | |
with: | |
version: 6 | |
run_install: "true" | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'pnpm' | |
- name: Lint | |
run: | | |
pnpm run lint | |
- name: Test | |
run: | | |
pnpm run pretest | |
pnpm test | |
pnpm run posttest | |
- uses: codecov/codecov-action@v3 | |
if: ${{ matrix.node-version == '18.x' }} # only upload coverage for one version | |
release-drafter: | |
runs-on: ubuntu-latest | |
name: Release Drafter | |
steps: | |
- uses: release-drafter/release-drafter@v5 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
update-doc: | |
runs-on: ubuntu-latest | |
concurrency: ci-${{ github.ref }} | |
if: ${{ github.event_name == 'push' }} | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v3 | |
- name: Setup PNPM | |
uses: pnpm/action-setup@v2.2.2 | |
with: | |
version: 6 | |
run_install: "true" | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'pnpm' | |
- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built. | |
run: | | |
pnpm run docs | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@v4.4.0 | |
with: | |
branch: gh-pages # The branch the action should deploy to. | |
folder: docs # The folder the action should deploy. |