mirror of https://github.com/theNewDynamic/gohugo-theme-ananke.git

Patrick Kollitsch
21 hours ago 5645b0de81b63f906ae4a13ba2d565f4182341bd
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
name: Theme tests
 
on:
  push:
    branches: [development, main]
  pull_request:
  workflow_dispatch:
    inputs:
      update_visual_baselines:
        description: Generate visual baselines for review as an artifact
        type: boolean
        default: false
 
permissions:
  contents: read
 
jobs:
  lint:
    runs-on: ubuntu-latest
    steps:
      - name: Check out repository
        uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
        with:
          persist-credentials: false
          submodules: false
 
      - name: Set up Node.js
        uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1
        with:
          node-version: "26"
 
      - name: Install yamllint
        run: pipx install yamllint==1.38.0
 
      - name: Show tool versions
        run: |
          node --version
          npm --version
          yamllint --version
 
      - name: Install dependencies
        run: npm ci
 
      - name: Code, lockfile, Markdown, TypeScript, and YAML linting
        run: npm run lint
 
  browser:
    runs-on: ubuntu-latest
    container: mcr.microsoft.com/playwright:v1.65.1-noble
    env:
      HOME: /root
    steps:
      - name: Check out repository
        uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
        with:
          persist-credentials: false
          submodules: false
 
      - name: Set up Node.js
        uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1
        with:
          node-version: "26"
 
      - name: Set up Hugo
        uses: peaceiris/actions-hugo@2752ce1d29631191ea3f27c23495fa06139a5b78
        with:
          hugo-version: "latest"
          extended: true
 
      - name: Show tool versions
        run: |
          node --version
          npm --version
          git --version
          hugo version
 
      - name: Install dependencies
        run: npm ci
 
      - name: Check feature registration and gate tests
        run: npm run test:coverage-gate && npm run test:unit
      - name: Browser, accessibility, and no-JavaScript tests
        run: npm run test:e2e -- --workers=2
      - name: Compare visual baselines
        if: ${{ !inputs.update_visual_baselines }}
        run: npm run test:visual -- --workers=2
      - name: Generate visual baselines
        if: ${{ inputs.update_visual_baselines }}
        run: npm run test:visual -- --update-snapshots=all --workers=2
      - name: Upload test results and visual baselines
        if: always()
        uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
        with:
          name: browser-results
          path: |
            tests/.playwright/
            tests/visual-baselines/
          retention-days: 14
 
  static:
    runs-on: ubuntu-latest
    steps:
      - name: Check out repository
        uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
        with:
          persist-credentials: false
          submodules: false
 
      - name: Set up Node.js
        uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1
        with:
          node-version: "26"
 
      - name: Set up Hugo
        uses: peaceiris/actions-hugo@2752ce1d29631191ea3f27c23495fa06139a5b78
        with:
          hugo-version: "latest"
          extended: true
 
      - name: Show tool versions
        run: |
          node --version
          npm --version
          git --version
          hugo version
 
      - name: Install dependencies
        run: npm ci
 
      - name: Install lychee
        env:
          GH_TOKEN: ${{ github.token }}
        run: |
          gh release download lychee-v0.24.2 --repo lycheeverse/lychee --pattern lychee-x86_64-unknown-linux-gnu.tar.gz --dir /tmp/lychee
          echo "1f4e0ef7f6554a6ed33dd7ac144fb2e1bbed98598e7af973042fc5cd43951c9a  /tmp/lychee/lychee-x86_64-unknown-linux-gnu.tar.gz" | sha256sum --check
          tar -xzf /tmp/lychee/lychee-x86_64-unknown-linux-gnu.tar.gz -C /tmp/lychee --strip-components=1
          sudo install /tmp/lychee/lychee /usr/local/bin/lychee
      - name: Markup, internal links, and build diagnostics
        run: npm run test:static && npm run test:static:gates
 
  performance:
    runs-on: ubuntu-latest
    steps:
      - name: Check out repository
        uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
        with:
          persist-credentials: false
          submodules: false
 
      - name: Set up Node.js
        uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1
        with:
          node-version: "26"
 
      - name: Set up Hugo
        uses: peaceiris/actions-hugo@2752ce1d29631191ea3f27c23495fa06139a5b78
        with:
          hugo-version: "latest"
          extended: true
 
      - name: Show tool versions
        run: |
          node --version
          npm --version
          git --version
          hugo version
 
      - name: Install dependencies
        run: npm ci
 
      - name: Performance, SEO, accessibility, and asset budgets
        run: npm run test:performance
      - name: Upload Lighthouse reports
        if: always()
        uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
        with:
          name: lighthouse-results
          path: |
            .lighthouseci/
            tests/.playwright/lighthouse/
          retention-days: 14