forked from atsign-foundation/docs.atsign.com
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 1008 Bytes
/
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
name: CI
on:
push:
branches:
- trunk
pull_request:
branches:
- trunk
permissions: # added using https://github.com/step-security/secure-workflows
contents: read
jobs:
ci:
strategy:
matrix:
command: ['build', 'build:staging']
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
- name: setup node
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
with:
node-version: '16'
- name: clean install
run: npm ci
- name: ${{ matrix.command }}
run: npm run ${{ matrix.command }}
- name: ensure hugo_stats.json populated with > 100 lines
run: |
if [ $(wc -l < ./hugo_stats.json) -gt 100 ]; then
echo "hugo_stats.json populated with > 100 lines"
else
echo "hugo_stats.json not populated with > 100 lines"
exit 1
fi