Skip to content

refactor: add species #22

refactor: add species

refactor: add species #22

Workflow file for this run

name: build
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout πŸ›ŽοΈ
uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
name: Install pnpm πŸ“¦
id: pnpm-install
with:
version: 8
run_install: false
- name: Get pnpm store directory πŸ“¦
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache πŸ“¦
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies πŸ“¦
run: pnpm install
- name: Lint 🧹
run: pnpm run lint
- name: Build πŸ”§
run: pnpm run build
- name: Test πŸ§ͺ
run: pnpm run coverage
- name: Upload Coverage πŸ“Š
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
with:
coverageLocations: ${{github.workspace}}/coverage/clover.xml:clover
- name: Build Docs πŸ“–
run: |
pnpm run docs
- name: Deploy πŸš€
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: docs