Additional formatting #127
Workflow file for this run
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: Validate for PR | |
on: | |
push: | |
branches: | |
- master | |
pull_request_target: | |
types: [opened, synchronize, reopened] | |
jobs: | |
validate: | |
name: Validate | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
ref: ${{ github.event.pull_request.head.ref }} | |
fetch-depth: 0 | |
- name: Setup Go | |
uses: actions/setup-go@v1 | |
with: | |
go-version: '1.17' | |
- name: Get dependencies | |
run: make deps | |
- name: Unit tests | |
run: make ci-test | |
- name: Build | |
run: make build | |
- name: Acceptance tests | |
run: make acceptance-test | |
env: | |
GO111MODULE: on | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v1 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |