-
Notifications
You must be signed in to change notification settings - Fork 19
48 lines (45 loc) · 1.08 KB
/
premerge.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
37
38
39
40
41
42
43
44
45
46
47
48
---
name: Premerge
on: # yamllint disable rule:truthy
push:
branches:
- master
pull_request:
branches:
- master
jobs:
lint:
name: Lint
runs-on: ubuntu-20.04
steps:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: 1.15
- name: Install Python
uses: actions/setup-python@v1
- name: Check out repository
uses: actions/checkout@v2
with:
fetch-depth: 0
persist-credentials: false
- name: Run linters
run: ./ci/lint.sh
test:
name: Test
runs-on: ubuntu-20.04
steps:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: 1.15
- name: Check out repository
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Test & publish code-coverage
uses: paambaati/codeclimate-action@v2.6.0
env:
CC_TEST_REPORTER_ID: ef07ead9fa11867e3688cde45f90e10ba0fddc35793f2003bbf2140a10904e0e
with:
coverageCommand: ./ci/test.sh