This repository was archived by the owner on Feb 6, 2025. It is now read-only.
chore(deps): update dependency @types/node to v20.17.17 #1877
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: "Main Workflow" | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - main | |
| concurrency: ${{ github.workflow }}-${{ github.ref }} | |
| jobs: | |
| build: | |
| name: "[Build] Node.js ${{ matrix.node }} and ${{ matrix.os }}" | |
| strategy: | |
| matrix: | |
| node: ["16", "18"] | |
| os: [ubuntu-latest, windows-latest, macOS-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
| - name: Setup Node.js ${{ matrix.node }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| cache: "npm" | |
| - run: npm i -g npm@7 | |
| - name: Install with npm | |
| run: npm i | |
| - name: Build | |
| run: npm run build | |
| test: | |
| runs-on: ubuntu-latest | |
| name: "[Test] Node.js 16 and ubuntu-latest" | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
| - name: Setup Node.js 16 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 16 | |
| cache: "npm" | |
| - name: Install with npm | |
| run: npm install | |
| - name: Run tests | |
| run: npm run test | |
| - name: Generate coverage report | |
| run: npm run coverage | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v3 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} |