forked from golang/tools
-
Notifications
You must be signed in to change notification settings - Fork 8
52 lines (43 loc) · 990 Bytes
/
go.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
52
# This workflow will build a Go project
name: Go
on:
push:
branches: [ "goplus" ]
pull_request:
branches: [ "goplus" ]
jobs:
Test:
strategy:
matrix:
go-version: [1.18.x, 1.21.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Go/Go+
uses: goplus/[email protected]
with:
go-version: ${{ matrix.go-version }}
gop-version: "1.1.13"
check-latest: true
cache: true
- name: Build Go+ tools
run: |
cd gop
go build -v ./...
- name: Test Go+ tools
run: |
cd gop
go test -v -coverprofile="coverage.txt" -covermode=atomic ./...
- name: Build Goxls
run: |
cd gopls
go build -v ./...
- name: Test Goxls
run: |
cd gopls
go test -v ./...
- name: Codecov
uses: codecov/codecov-action@v3
with:
files: ./gop/coverage.txt