chore(deps/npm): bump the observable group with 2 updates #191
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 ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [lts/*, latest] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' | |
- name: Install dependencies | |
run: npm ci | |
lint: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: latest | |
cache: 'npm' | |
- name: Install dependencies | |
run: npm ci | |
- name: Lint | |
run: npm run lint | |
test: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: latest | |
cache: 'npm' | |
- name: Install dependencies | |
run: npm ci | |
- name: Test | |
run: npm run test | |
- name: Upload code coverage | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
verbose: true | |
# docs: | |
# runs-on: ubuntu-latest | |
# # if: ${{ github.event_name == 'push' }} | |
# needs: build | |
# permissions: | |
# contents: read | |
# pages: write | |
# id-token: write | |
# steps: | |
# - name: Checkout repository | |
# uses: actions/checkout@v4 | |
# - name: Install Node.js | |
# uses: actions/setup-node@v4 | |
# with: | |
# node-version: latest | |
# cache: 'npm' | |
# - name: Install dependencies | |
# run: npm ci | |
# - name: Build documentation | |
# run: npm run build:typedoc | |
# - name: Deploy documentation | |
# uses: JamesIves/github-pages-deploy-action@v4 | |
# with: | |
# folder: docs/typedocs | |
ci-success: | |
runs-on: ubuntu-latest | |
if: ${{ success() && github.event_name == 'push' }} | |
needs: | |
- build | |
- lint | |
- test | |
steps: | |
- name: ✅ CI succeeded | |
run: exit 0 | |
ci-success-pr: | |
runs-on: ubuntu-latest | |
if: ${{ success() && github.event_name == 'pull_request' }} | |
needs: | |
- build | |
- lint | |
- test | |
steps: | |
- name: ✅ CI succeeded | |
run: exit 0 |