-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (48 loc) · 1.76 KB
/
go-package.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
---
name: Go package build and test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: "0 0 1 * *"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.21"
- name: Build
run: make
- name: Formatting check
run: |
set -e -u -x
PICKFILES=./pick-files ./scripts/update-usage-information.sh
(( $(goftm -d *.go | wc -l) == 0 )) || false
gofmt -w *.go
(( $(git diff | wc -l) == 0 )) || false
- name: Simple test
run: |
set -e -u -x
./pick-files --version
./pick-files --number 10 --destination output-1 --folder artifacts/a/a
./pick-files --number 10 --destination output-2 --folder artifacts/a/a
./pick-files --number 10 --destination output-3 --folder artifacts/a/a
./pick-files --print-database-statistics
./pick-files --folder artifacts --suffix txt --destination-option append --destination output-4 --verbose
./pick-files --folder artifacts --suffix txt --destination-option append --destination output-4 --verbose
./pick-files --folder artifacts --suffix txt --destination-option append --destination output-4 --verbose
./pick-files --folder artifacts --suffix txt --destination-option append --destination output-4 --verbose
./pick-files --folder artifacts --suffix txt --destination-option append --destination output-4 --verbose
tree output-4
- name: Test
run: make test
- name: Coverage
run: make coverage