Skip to content

Merge pull request #580 from reviewdog/renovate/node-16.x #2045

Merge pull request #580 from reviewdog/renovate/node-16.x

Merge pull request #580 from reviewdog/renovate/node-16.x #2045

Workflow file for this run

name: test
on:
pull_request:
push:
jobs:
test:
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version-file: "package.json"
cache: npm
- name: Install Dependencies
run: npm ci
- name: Run Test
run: npm run test
- name: Ensure dist/ folder is up-to-date
if: ${{ runner.os == 'Linux' }}
shell: bash
run: |
npm run package
if [ "$(git diff --ignore-space-at-eol | wc -l)" -gt "0" ]; then
echo "Detected uncommitted changes after build. See status below:"
git diff
exit 1
fi