-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 952 Bytes
/
main.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
name: yogo
env:
GOPROXY: https://goproxy.io,direct
GO111MODULE: "on"
run-name: ${{ github.actor }} is testing out GitHub Actions 🚀
on: [push]
jobs:
go-test:
runs-on: ubuntu-22.04
steps:
- name: CA
run: |
env
apt update
apt-get install ca-certificates -y
update-ca-certificates
- name: Check out repository code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
check-latest: true
cache-dependency-path: go.sum
- name: Go version
run: go version && env
- name: Build
run: go mod vendor && go build -v ./...
- name: Test
run: go test -v ./...
- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: binary file
path: |
yogo
config