Skip to content

Merge pull request #28 from setopsco/hzeus-patch-1 #125

Merge pull request #28 from setopsco/hzeus-patch-1

Merge pull request #28 from setopsco/hzeus-patch-1 #125

name: 'test-setup-action-build'
on:
push:
branches: [main]
pull_request:
jobs:
test:
name: Test
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./setup
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: '20.x'
- name: Install
run: npm clean-install
- name: Verify
run: |
npm run build
# Fail if "npm run build" generated new changes in dist
git update-index --refresh dist/* && git diff-index --quiet HEAD dist
- name: Test
run: npm test