Fixes an issue discovered in dotnet/docs#38912 #93
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: node build and test | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- 'actions/status-checker/**' # Only run for TypeScript action updates | |
pull_request: | |
branches: [ main ] | |
paths: | |
- 'actions/status-checker/**' # Only run for TypeScript action updates | |
jobs: | |
build: | |
name: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@main | |
- name: Use Node.js 18 | |
uses: actions/setup-node@main | |
with: | |
node-version: 18 | |
cache: 'npm' | |
cache-dependency-path: ./actions/status-checker/package-lock.json | |
- run: | | |
cd ./actions/status-checker/ | |
npm ci | |
npm run build --if-present | |
npm test |