Feature: optional rate limiter on concurrent sitemap functions execut… #160
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: CI | |
on: | |
push: | |
branches: ['canary'] | |
pull_request: | |
types: [opened, synchronize] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Setup Node LTS | |
uses: actions/setup-node@v3 | |
with: | |
cache: pnpm | |
node-version: 'lts/*' | |
- name: Install Dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Build | |
run: pnpm run build | |
test: | |
name: Unit Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Setup Node LTS | |
uses: actions/setup-node@v3 | |
with: | |
cache: pnpm | |
node-version: 'lts/*' | |
- name: Install Dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Run Tests | |
run: pnpm run coverage | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Setup Node LTS | |
uses: actions/setup-node@v3 | |
with: | |
cache: pnpm | |
node-version: 'lts/*' | |
- name: Install Dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Run Lint | |
run: pnpm run lint |