-
Notifications
You must be signed in to change notification settings - Fork 34
45 lines (40 loc) · 1006 Bytes
/
main.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
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '1.17.8'
- name: allure-golangci-lint
run: cd ./pkg/allure && make lint
- name: provider-golangci-lint
run: cd ./pkg/framework && make lint
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: allure-test
run: cd ./pkg/allure && make test
- name: provider-test
run: cd ./pkg/framework && make test
examples:
name: examples
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run examples
run: make examples
- name: Archive code coverage results
uses: actions/upload-artifact@v2
with:
name: allure-results
path: ./examples/allure-results