diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index b01affe..bdc2a78 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -7,30 +7,9 @@ on: pull_request: jobs: + check-dist: + name: Check dist/ directory + uses: actions/reusable-workflows/.github/workflows/check-dist.yml@a8533f184b279cfc1b2dd6a96ed2f097ccf81189 test: name: Test - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - - steps: - - uses: actions/checkout@v3 - - - name: Setup Node.js 16.x - uses: actions/setup-node@v3 - with: - node-version: '16.x' - - - name: Install - run: npm clean-install - - - name: Verify - if: runner.os == 'Linux' - 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 + uses: actions/reusable-workflows/.github/workflows/basic-validation.yml@a8533f184b279cfc1b2dd6a96ed2f097ccf81189 diff --git a/package.json b/package.json index b2d4191..2a62eab 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,8 @@ "lint": "cd wrapper && npm run lint && cd .. && semistandard --env jest --fix", "build": "cd wrapper && npm run build && cd .. && ncc build index.js --out dist", "postinstall": "cd wrapper && npm install", - "prepare": "husky install" + "prepare": "husky install", + "format-check": "echo \"unimplemented for actions/reusable-workflows basic-validation\"" }, "keywords": [], "author": "",