feat: add article about pnpm and promote it to be featured one #40
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: Build | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
node-version: [20] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'pnpm' | |
- name: Set up Cypress binary cache | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cache/Cypress | |
key: cypress-${{ runner.os }}-cypress-${{ hashFiles('pnpm-lock.yaml') }} | |
restore-keys: | | |
cypress-${{ runner.os }}- | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Run linter | |
run: pnpm run lint | |
- name: Run unit tests | |
run: pnpm run test.unit | |
- name: Install Cypress binary | |
run: pnpm exec cypress install | |
- name: Setup Cypress and Run integration tests | |
uses: cypress-io/github-action@v6 | |
with: | |
install: false | |
command: pnpm run test.component | |
# - name: Run integration tests | |
# run: pnpm run test.component | |
- name: Run build | |
run: pnpm run build |