-
Notifications
You must be signed in to change notification settings - Fork 25
37 lines (34 loc) · 1.04 KB
/
Copy pathpull-request.yml
File metadata and controls
37 lines (34 loc) · 1.04 KB
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
name: Compile Hugo
on:
pull_request:
branches: [ "*" ]
paths-ignore:
- README.md
- CONTRIBUTING.md
- CODE_OF_CONDUCT.md
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 20
- run: npm install -g yarn
- run: yarn install
- run: yarn run hugo
- run: yarn run dprint check
- uses: score-spec/setup-score@888a7deafd396c3f3f05e00d2d9b0ab225799ac0 # v3.2.4
with:
file: score-compose
token: ${{ secrets.GITHUB_TOKEN }}
version: 'latest'
- run: |
score-compose init --no-sample
score-compose generate score.yaml --build main=.
- run: |
docker compose up --build -d
- run: |
curl $(score-compose resources get-outputs dns.default#score-docs.dns --format '{{ .host }}:8080/docs/')