Skip to content

Commit cd9fa0d

Browse files
committed
Add basic GitHub action.
1 parent c5d8241 commit cd9fa0d

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI
2+
on: [push, pull_request]
3+
4+
jobs:
5+
test:
6+
name: Test URLs
7+
runs-on: ubuntu-18.04
8+
9+
steps:
10+
- name: Setup Go
11+
uses: actions/setup-go@v1
12+
with:
13+
go-version: 1.13.x
14+
15+
- name: Setup Hugo
16+
run: make hugo
17+
18+
- name: Checkout
19+
uses: actions/checkout@v1
20+
21+
- name: Test URLs on production
22+
run: go run scripts/test-urls.go https://fromcodetoprod.com/
23+
24+
- name: Serve local version
25+
run: make serve
26+
27+
- name: Wait
28+
run: sleep 1
29+
30+
- name: Test local URLs
31+
run: go run scripts/test-urls.go http://localhost:1313/

0 commit comments

Comments
 (0)