Skip to content

Code optimization

Code optimization #9

Workflow file for this run

name: continuous-integration
on: push
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Fetch sources
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
cache: npm
node-version: 22
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test
env:
AKISMET_API_KEY: ${{secrets.AKISMET_API_KEY}}
deploy:
needs: test
runs-on: ubuntu-latest
steps:
- name: Fetch sources
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
cache: npm
node-version: 22
- name: Set up Python
uses: actions/setup-python@v5
with:
cache: pip
python-version: 3.12
- name: Install dependencies
run: |
npm ci
pip install --requirement=etc/requirements.txt
- name: Deploy documentation
run: |
npx gulp doc
mkdocs gh-deploy --config-file=etc/mkdocs.yaml --force