-
Notifications
You must be signed in to change notification settings - Fork 5
36 lines (35 loc) · 925 Bytes
/
test.yaml
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: tests
on:
pull_request:
branches:
- main
workflow_dispatch:
jobs:
kuttl:
uses: ./.github/workflows/kuttl_workflow.yaml
with:
istio_ver: ''
kind_image: ''
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install asdf & tools
uses: asdf-vm/actions/install@v2
- run: make test lint
pre-merge-tasks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install asdf & tools
uses: asdf-vm/actions/install@v2
- name: Verify pre-merge tasks are committed.
run: |
make prepare
make pre-merge
if [[ `git status --porcelain` ]]; then
echo "There seem to be changes after 'pre-merge' tasks, did you run these tasks before committing?"
exit 1
else
echo "Pre-merge tasks are committed :)"
fi