feat!: allow to run any script for clean/install/build (#126) #179
This file contains hidden or 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: CI | |
| on: [pull_request, push] | |
| jobs: | |
| build_test: | |
| name: Build & Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-node@v4 | |
| - run: npm ci | |
| - run: npm run build | |
| - run: npm test | |
| - name: Report Compressed Size | |
| uses: ./ | |
| with: | |
| repo-token: "${{ secrets.GITHUB_TOKEN }}" | |
| pattern: index.js | |
| install-script: npm ci | |
| build-script: npm run build |