fix: handle pusher-js@8.5.0 CJS export breaking change in code:logs #433
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
| on: pull_request | |
| name: Pull Request | |
| jobs: | |
| setup: | |
| name: Setup | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@master | |
| - name: Use Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: "18.12.x" | |
| - name: Cache dependencies | |
| uses: actions/cache@v3 | |
| id: cache | |
| with: | |
| path: | | |
| node_modules | |
| dist | |
| key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}-${{ github.sha }} | |
| - run: yarn install | |
| - run: yarn build | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| needs: setup | |
| steps: | |
| - uses: actions/checkout@master | |
| - name: Use Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: "18.12.x" | |
| - name: Restore cache | |
| uses: actions/cache@v3 | |
| with: | |
| path: | | |
| node_modules | |
| dist | |
| key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}-${{ github.sha }} | |
| - run: yarn lint | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| needs: setup | |
| steps: | |
| - uses: actions/checkout@master | |
| - name: Use Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: "18.12.x" | |
| - name: Restore cache | |
| uses: actions/cache@v3 | |
| with: | |
| path: | | |
| node_modules | |
| dist | |
| key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}-${{ github.sha }} | |
| - run: yarn test |