chore(deps): update openmoji digest to c279903 #175
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: | |
- main | |
- 'changeset-release/main' | |
- 'issue/*' | |
pull_request: | |
branches: | |
- main | |
env: | |
PNPM_CACHE_FOLDER: .pnpm-store | |
jobs: | |
# Lint the project | |
lint: | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout code repository | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: setup caching | |
uses: actions/cache@v2 | |
with: | |
path: ${{ env.PNPM_CACHE_FOLDER }} | |
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm- | |
- name: setup node.js | |
uses: actions/setup-node@v2-beta | |
with: | |
node-version: 16 | |
- name: install and audit | |
uses: ./.github/actions/pnpm | |
with: | |
cache: ${{ env.PNPM_CACHE_FOLDER }} | |
- name: check TS / JS files | |
run: pnpm lint:es | |
- name: check markdown code blocks | |
run: pnpm lint:md | |
- name: check formatting | |
run: pnpm lint:prettier | |
- name: check repo and versions | |
run: pnpm lint:repo | |
# Typecheck the project | |
typecheck: | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout code repository | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: setup caching | |
uses: actions/cache@v2 | |
with: | |
path: ${{ env.PNPM_CACHE_FOLDER }} | |
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm- | |
- name: setup node.js | |
uses: actions/setup-node@v2-beta | |
with: | |
node-version: 16 | |
- name: install and audit | |
uses: ./.github/actions/pnpm | |
with: | |
cache: ${{ env.PNPM_CACHE_FOLDER }} | |
- name: typecheck project | |
run: pnpm typecheck | |
# Unit test and update coverage report | |
unit-test: | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout code repository | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: setup caching | |
uses: actions/cache@v2 | |
with: | |
path: ${{ env.PNPM_CACHE_FOLDER }} | |
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm- | |
- name: setup node.js | |
uses: actions/setup-node@v2-beta | |
with: | |
node-version: 16 | |
- name: install and audit | |
uses: ./.github/actions/pnpm | |
with: | |
cache: ${{ env.PNPM_CACHE_FOLDER }} | |
- name: run unit tests | |
run: pnpm test | |
# Build the project and run tests on built files. | |
build-test: | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [14.x, 16.x] | |
fail-fast: false | |
steps: | |
- name: checkout code repository | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: setup caching | |
uses: actions/cache@v2 | |
with: | |
path: ${{ env.PNPM_CACHE_FOLDER }} | |
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm- | |
- name: setup node.js | |
uses: actions/setup-node@v2-beta | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: install and audit | |
uses: ./.github/actions/pnpm | |
with: | |
cache: ${{ env.PNPM_CACHE_FOLDER }} | |
- name: build project | |
run: pnpm build | |
- name: run unit tests | |
run: pnpm test:build | |
# Check that package sizes are within their boundaries | |
size-check: | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout code repository | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: setup caching | |
uses: actions/cache@v2 | |
with: | |
path: ${{ env.PNPM_CACHE_FOLDER }} | |
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm- | |
- name: setup node.js | |
uses: actions/setup-node@v2-beta | |
with: | |
node-version: 16 | |
- name: install and audit | |
uses: ./.github/actions/pnpm | |
with: | |
cache: ${{ env.PNPM_CACHE_FOLDER }} | |
- name: build project | |
run: pnpm build | |
- name: check sizes | |
run: pnpm size |