File tree Expand file tree Collapse file tree 1 file changed +12
-38
lines changed
Expand file tree Collapse file tree 1 file changed +12
-38
lines changed Original file line number Diff line number Diff line change @@ -2,54 +2,28 @@ name: build
22
33on :
44 push :
5- branches : [ main ]
5+ branches : [main]
66 pull_request :
7- branches : [ main ]
7+ branches : [main]
8+ schedule :
9+ - cron : ' 0 0 * * 0'
810 workflow_dispatch :
911 inputs :
1012 tag :
1113 description : ' Tag to create'
1214 required : true
1315 default : ' v0.0.0'
1416
17+ # See https://github.com/cristalhq/.github/.github/workflows
1518jobs :
16-
1719 build :
18- name : Build & Test
19- runs-on : ubuntu-latest
20- steps :
21- - name : Set up Go 1.x
22- uses : actions/setup-go@v3
23- with :
24- go-version : ^1.x
25-
26- - name : Check out code
27- uses : actions/checkout@v3
28-
29- - name : Test
30- run : go test -v -coverprofile=coverage.txt ./...
31-
32- - name : Upload Coverage
33- uses : codecov/codecov-action@v3
34- continue-on-error : true
35- with :
36- token : ${{secrets.CODECOV_TOKEN}}
37- file : ./coverage.txt
38- fail_ci_if_error : false
20+ uses : cristalhq/.github/.github/workflows/build.yml@main
21+
22+ codeql :
23+ uses : cristalhq/.github/.github/workflows/codeql.yml@main
3924
4025 release :
4126 if : github.event_name == 'workflow_dispatch'
42-
43- name : Release
44- runs-on : ubuntu-latest
45- steps :
46- - uses : actions/checkout@v3
47-
48- - name : Checkout with tags
49- run : git fetch --prune --unshallow --tags
50-
51- - name : Create release
52- run : |
53- git log --format="%C(auto) %H %s" `git tag --sort=-committerdate | head -1`...HEAD > changelog.txt
54- echo ${{ secrets.GITHUB_TOKEN }} | gh auth login --with-token
55- gh release create ${{ github.event.inputs.tag }} -t ${{ github.event.inputs.tag }} -F changelog.txt
27+ uses : cristalhq/.github/.github/workflows/release.yml@main
28+ with :
29+ tag : ${{ github.event.input.tag }}
You can’t perform that action at this time.
0 commit comments