forked from flyteorg/flyteplugins
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (42 loc) · 1.19 KB
/
pull_request.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
37
38
39
40
41
42
43
44
name: Pull Request
on:
pull_request
jobs:
build-copilot:
name: Build Co-Pilot Docker Image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Push Docker Image to Github Registry
uses: whoan/docker-build-with-cache-action@v5
with:
username: "${{ secrets.PUBLISH_CONTAINER_ACTOR }}"
password: "${{ secrets.PUBLISH_CONTAINER }}"
image_name: ${{ github.repository }}/flytecopilot
image_tag: ${{ github.sha }}
push_git_tag: true
registry: ghcr.io
tests-lint:
name: Run tests and lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Unit Tests
uses: cedrickring/golang-action@1.5.2
env:
GO111MODULE: "on"
with:
args: make install && make test_unit_codecov
- name: Push CodeCov
uses: codecov/codecov-action@v1
with:
file: coverage.txt
flags: unittests
fail_ci_if_error: true
- name: Lint
uses: cedrickring/golang-action@1.5.2
env:
GO111MODULE: "on"
with:
args: make install && make lint