forked from chartmuseum/helm-push
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 901 Bytes
/
build-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
name: build-pr
on:
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: setup go environment
uses: actions/setup-go@v1
with:
go-version: '1.17'
- name: run unit tests
run: sudo pip install virtualenv && make test
- name: build binary
run: make build_linux link_linux
- name: run acceptance tests
run: make acceptance
- name: upload coverage report
uses: actions/upload-artifact@main
with:
name: helmpush-coverage-report-${{ github.sha }}
path: .cover/
if: always()
- name: upload acceptance report
uses: actions/upload-artifact@main
with:
name: helmpush-acceptance-report-${{ github.sha }}
path: .robot/
if: always()