-
Notifications
You must be signed in to change notification settings - Fork 18
92 lines (92 loc) · 2.95 KB
/
plugin.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: Golang rules
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Run tests
run: ./pleasew test -p -v notice --log_file plz-out/log/test.log
- name: Archive logs
if: always()
uses: actions/upload-artifact@v4
with:
name: logs
path: plz-out/log
test_coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Run tests with coverage
run: ./pleasew cover -p -v notice --nocoverage_report --log_file plz-out/log/test_coverage.log
- name: Archive logs
if: always()
uses: actions/upload-artifact@v4
with:
name: coverage_logs
path: plz-out/log
test_tools:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Run tests with separate Go tools
run: ./pleasew cover -p -v notice --nocoverage_report --log_file plz-out/log/test_tools.log
- name: Archive logs
if: always()
uses: actions/upload-artifact@v4
with:
name: tools_logs
path: plz-out/log
test_debug:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build with debug configuration
run: ./pleasew build -c dbg -p -v notice --log_file plz-out/log/test_debug.log
- name: Archive logs
if: always()
uses: actions/upload-artifact@v4
with:
name: debug_logs
path: plz-out/log
release:
needs:
- test
- test_coverage
- test_tools
- test_debug
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build please_go
run: ./pleasew build //tools/please_go
- name: Build
run: ./pleasew build --profile release -o plugin.go.pleasegotool:$(pwd)/plz-out/bin/tools/please_go/please_go -p -v notice //package:please_go_release_files //package:driver_release_files
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: thought-machine/release-action@master
- name: Release tool
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: thought-machine/release-action@master
with:
version-file: tools/please_go/VERSION
change-log-file: tools/please_go/ChangeLog
release-prefix: please-go
release-files: plz-out/package/please_go
- name: Release package driver
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: thought-machine/release-action@master
with:
version-file: tools/driver/VERSION
change-log-file: tools/driver/ChangeLog
release-prefix: plz-gopackagesdriver
release-files: plz-out/package/driver