-
-
Notifications
You must be signed in to change notification settings - Fork 22
47 lines (39 loc) · 939 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
name: Go
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
name: Build
runs-on: macos-latest
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "stable"
id: go
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Cache go.mod
uses: actions/cache@v3
with:
path: |
~/Library/Caches/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Test Default
run: go run main.go -V default --no-backup --yes
- name: Test Save
run: go run main.go -V save --config /tmp/lp.yml
- name: Test Load
run: go run main.go -V load --config /tmp/lp.yml --no-backup --yes
- name: Test Version
run: go run main.go version