chore(deps): bump on-headers and compression #543
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: [push] | |
| env: | |
| CI: "true" | |
| COVERALLS_REPO_TOKEN: "${{ secrets.COVERALLS_REPO_TOKEN }}" | |
| COVERALLS_GIT_BRANCH: "${{ github.ref }}" | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2-beta | |
| - name: Setup node | |
| uses: actions/setup-node@v1 | |
| with: | |
| node-version: "14.x" | |
| - name: Restore node_modules | |
| uses: actions/cache@v1 | |
| id: api-node-modules | |
| with: | |
| path: node_modules | |
| key: ${{ runner.os }}-api-node-modules-${{ hashFiles('package-lock.json') }} | |
| - name: Restore .npm cache | |
| if: steps.api-node-modules.outputs.cache-hit != 'true' | |
| uses: actions/cache@v1 | |
| with: | |
| path: ~/.npm | |
| key: ${{ runner.os }}-api-npm-cache-${{ hashFiles('package-lock.json') }} | |
| restore-keys: | | |
| - ${{ runner.os }}-api-npm-cache-${{ hashFiles('package-lock.json') }} | |
| - ${{ runner.os }}-api-npm-cache- | |
| - name: Install dependencies | |
| if: steps.api-node-modules.outputs.cache-hit != 'true' | |
| run: npm install | |
| - run: npm run analyze:lint | |
| prettier: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2-beta | |
| - name: Setup node | |
| uses: actions/setup-node@v1 | |
| with: | |
| node-version: "14.x" | |
| - name: Restore node_modules | |
| uses: actions/cache@v1 | |
| id: api-node-modules | |
| with: | |
| path: node_modules | |
| key: ${{ runner.os }}-api-node-modules-${{ hashFiles('package-lock.json') }} | |
| - name: Restore .npm cache | |
| if: steps.api-node-modules.outputs.cache-hit != 'true' | |
| uses: actions/cache@v1 | |
| with: | |
| path: ~/.npm | |
| key: ${{ runner.os }}-api-npm-cache-${{ hashFiles('package-lock.json') }} | |
| restore-keys: | | |
| - ${{ runner.os }}-api-npm-cache-${{ hashFiles('package-lock.json') }} | |
| - ${{ runner.os }}-api-npm-cache- | |
| - name: Install dependencies | |
| if: steps.api-node-modules.outputs.cache-hit != 'true' | |
| run: npm install | |
| - run: npm run analyze:prettier | |
| test-and-coverage: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2-beta | |
| - name: Setup node | |
| uses: actions/setup-node@v1 | |
| with: | |
| node-version: "18.x" | |
| - name: Restore node_modules | |
| uses: actions/cache@v1 | |
| id: api-node-modules | |
| with: | |
| path: node_modules | |
| key: ${{ runner.os }}-api-node-modules-${{ hashFiles('package-lock.json') }} | |
| - name: Restore .npm cache | |
| if: steps.api-node-modules.outputs.cache-hit != 'true' | |
| uses: actions/cache@v1 | |
| with: | |
| path: ~/.npm | |
| key: ${{ runner.os }}-api-npm-cache-${{ hashFiles('package-lock.json') }} | |
| restore-keys: | | |
| - ${{ runner.os }}-api-npm-cache-${{ hashFiles('package-lock.json') }} | |
| - ${{ runner.os }}-api-npm-cache- | |
| - name: Install dependencies | |
| if: steps.api-node-modules.outputs.cache-hit != 'true' | |
| run: npm install --legacy-peer-deps | |
| - name: Generate Coverage | |
| run: | | |
| npx cypress install | |
| npm run test | |
| - name: Coveralls | |
| uses: coverallsapp/github-action@master | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| path-to-lcov: ./coverage/lcov.info |