-
Notifications
You must be signed in to change notification settings - Fork 417
41 lines (34 loc) · 1020 Bytes
/
presubmit.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
39
40
41
name: Presubmit tests
on: [pull_request]
jobs:
pr_tests:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.15.x
- name: Checkout code
uses: actions/checkout@v2
with:
persist-credentials: false
submodules: true # Fetch Hugo themes.
- name: Check files with invalid UTF-8 content
run: |
./ci/utfcheck.sh
- name: Check files with trailing spaces/lines.
uses: marcopaganini/check-trailing-spaces@v2.0.0
with:
check_all_files: 1
ignore_regex: '\./themes/.*'
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.139.2'
- name: Build Site
run: hugo
- name: Build checkparticipantes
run: |
pushd ci && go build -o checkparticipantes && popd
- name: Validates PARTICIPANTES.md
run: ci/checkparticipantes PARTICIPANTES.md