Test cli wrapper return code/out/err, match entire result in toMatchS… #205
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: Test | |
| on: | |
| push: | |
| branches-ignore: | |
| - main | |
| tags-ignore: | |
| - 'v*' | |
| jobs: | |
| test_code: | |
| name: Test code | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| include: | |
| - os: ubuntu-latest | |
| - os: macos-latest | |
| - os: windows-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install | |
| run: | | |
| npm ci | |
| - name: Audit | |
| run: | | |
| npm audit | |
| - name: Lint | |
| run: | | |
| npm run lint | |
| - name: Test | |
| run: | | |
| npm test | |
| - name: Build | |
| run: | | |
| npm run build |