chore(deps): update dependency node-reporter-gha to v2.0.2 #1805
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: Build and Test | |
on: | |
push: | |
branches: | |
- '**' | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
build: | |
name: 'Build and Test (Node: ${{ matrix.node.name }})' | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
strategy: | |
matrix: | |
node: | |
- name: LTS | |
version: lts/* | |
- name: Previous LTS | |
version: lts/-1 | |
- name: Current | |
version: node | |
steps: | |
- name: Check out the code | |
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | |
- name: Set up Node.js environment | |
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | |
with: | |
node-version: ${{ matrix.node.version }} | |
cache: npm | |
- name: Install dependencies | |
run: npm ci --ignore-scripts | |
- name: Run postinstall scripts | |
run: npm rebuild && npm run prepare --if-present | |
- name: Run tests | |
run: npm test | |
dogfooding: | |
name: Dogfooding | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: Check out the code | |
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | |
- name: Set up Node.js environment | |
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | |
with: | |
node-version: lts/* | |
cache: npm | |
- name: Install dependencies | |
run: npm ci --ignore-scripts | |
- name: Build | |
run: npm run build | |
- name: ESLint check | |
run: npx eslint -f ./dist/src/ . |