-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (43 loc) · 1.07 KB
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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