-
-
Notifications
You must be signed in to change notification settings - Fork 19
40 lines (31 loc) · 1.2 KB
/
drevops-test-docs.yml
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
# This action is used for DrevOps maintenance. It will not be used in the scaffolded project.
name: DrevOps - Test documentation
on:
push:
tags:
- '**'
branches:
- '**'
jobs:
drevops-test-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Install Ahoy
run: os=$(uname -s | tr [:upper:] [:lower:]) && architecture=$(case $(uname -m) in x86_64 | amd64) echo "amd64" ;; aarch64 | arm64 | armv8) echo "arm64" ;; *) echo "amd64" ;; esac) && sudo wget -q https://github.com/ahoy-cli/ahoy/releases/latest/download/ahoy-bin-$os-$architecture -O /usr/local/bin/ahoy && sudo chown $USER /usr/local/bin/ahoy && chmod +x /usr/local/bin/ahoy
- name: Install Aspell
run: sudo apt-get update -y && sudo apt-get install -y aspell
- name: Setup PHP
uses: shivammathur/setup-php@v2
- name: Build site
working-directory: .drevops/docs
run: ahoy build
- name: Check spelling
working-directory: .drevops/docs
run: ahoy lint
- name: Run tests
working-directory: .drevops/docs
run: ahoy test