generated from dnnrly/goclitem
-
-
Notifications
You must be signed in to change notification settings - Fork 13
36 lines (36 loc) · 938 Bytes
/
pr.yml
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
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 }}