-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (40 loc) · 1.34 KB
/
ci.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
45
46
47
48
49
50
51
name: Test and style check
on:
pull_request:
push:
jobs:
pre-commit:
runs-on: ubuntu-20.04
steps:
- name: Check out the codebase.
uses: actions/checkout@v3
with:
submodules: true
- uses: actions/setup-go@v2
with:
go-version: '^1.17.6'
- name: Set up Python 3.
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install test dependencies.
run: pip3 install -U pre-commit
- name: Install hooks
run: pre-commit install
- name: Run hooks manually to check for style violations
run: pre-commit run --all-files
bash-unit-tests:
runs-on: ubuntu-20.04
steps:
- name: Check out the codebase.
uses: actions/checkout@v3
with:
submodules: true
- name: Set git user name
# empty ident name (for <runner@fv-az200-232.z5vp5onzgpeubbrmro10dqbqjh.jx.internal.cloudapp.net>) not allowed
run: git config --global user.email "[email protected]"
- name: Set git user email
# empty ident name (for <runner@fv-az200-232.z5vp5onzgpeubbrmro10dqbqjh.jx.internal.cloudapp.net>) not allowed
run: git config --global user.name "kayobe-automation-github-workflow"
- name: Install hooks
run: test/unit.sh