Skip to content

chore: upgrade ci

chore: upgrade ci #1

Workflow file for this run

# yaml-language-server: $schema=https://json-schema.org/draft-07/schema#
name: Test
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
env:
node_version: "18"
python_version: "3.10"
jobs:
test:
name: Build documentation
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python runtime
uses: actions/setup-python@v3
with:
python-version: "${{ env.python_version }}"
- name: Install Python dependencies
run: |
pip install -r requirements.txt
- uses: pnpm/action-setup@v2
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "${{ env.node_version }}"
cache: pnpm
- name: Install Node dependencies
run: |
pnpm i
- name: Lint
run: |
pnpm lint
- name: Build
env:
GOOGLE_ANALYTICS_KEY: ${{ secrets.GOOGLE_ANALYTICS_KEY }}
ENABLE_MATHJAX: false
run: |
pnpm build