forked from mcoops/deplist
-
Notifications
You must be signed in to change notification settings - Fork 5
57 lines (43 loc) · 1 KB
/
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
53
54
55
56
57
name: Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
GEM_HOME: /tmp/gems
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.2
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: 1.17
- run: bundle config --local path $PWD/vendor/bundle
- name: Set up Node
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Install Yarn
run: npm install -g yarn
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'temurin'
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Get dependencies
run: |
go get -v -t -d ./...
- name: Build
run: go build -v .
- name: Test
run: go test -v ./... -cover