-
Notifications
You must be signed in to change notification settings - Fork 9
41 lines (36 loc) · 836 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
37
38
39
40
41
name: PR
on:
pull_request:
branches: [ master ]
env:
GO_VERSION: 1.19.2
K8S_VERSION: v1.24.1
ENV: test
jobs:
unit-tests:
name: Unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run test
uses: ./.github/actions/unit-test
build:
name: Build
needs: ["unit-tests"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build image
uses: ./.github/actions/build
with:
dockerhub-username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub-token: ${{ secrets.DOCKERHUB_TOKEN }}
integration-tests:
needs: ["build"]
name: Integration tests
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run tests
uses: ./.github/actions/integration-test