Adiciona checagem de espaços mais estrita. #694
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |