Merge pull request #81 from AllenShintani/master #14
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: Test | |
on: push | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: latest | |
- name: Install dependencies | |
run: npm install | |
- name: Run lint | |
run: npm run lint | |
- name: Run tests | |
run: npm test | |
- name: Modify package.json and Reinstall dependencies | |
if: success() | |
run: | | |
node modifyPackageJson.cjs | |
rm -rf package-lock.json node_modules | |
npm install | |
- name: Run type-check | |
run: npm run type-check |