Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
commit-analyzer-cz
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
go-semantic-release
commit-analyzer-cz
Commits
2ce56b55
Commit
2ce56b55
authored
4 years ago
by
Christoph Witzko
Browse files
Options
Downloads
Patches
Plain Diff
chore(ci): initial
parent
f4598e1f
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/ci.yml
+61
-0
61 additions, 0 deletions
.github/workflows/ci.yml
with
61 additions
and
0 deletions
.github/workflows/ci.yml
0 → 100644
+
61
−
0
View file @
2ce56b55
name
:
CI
on
:
push
:
branches
:
-
'
**'
pull_request
:
branches
:
-
'
**'
jobs
:
lint
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v2
-
name
:
golangci-lint
run
:
|
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s
./bin/golangci-lint run -v
build
:
runs-on
:
${{ matrix.os }}
needs
:
lint
strategy
:
fail-fast
:
true
matrix
:
os
:
[
macos-latest
,
windows-latest
,
ubuntu-latest
]
steps
:
-
uses
:
actions/checkout@v2
-
uses
:
actions/setup-go@v1
with
:
go-version
:
1.14
-
name
:
Build
run
:
go build ./cmd/commit-analyzer-cz/
-
name
:
Test
run
:
go test -v ./...
release
:
runs-on
:
ubuntu-latest
needs
:
build
steps
:
-
uses
:
actions/checkout@v2
-
uses
:
actions/setup-go@v1
with
:
go-version
:
1.14
-
run
:
echo "::add-path::~/go/bin"
-
name
:
Get release dependencies
run
:
|
go get github.com/mitchellh/gox
go get github.com/tcnksm/ghr
-
uses
:
go-semantic-release/action@v1
id
:
semrel
with
:
github-token
:
${{ secrets.GITHUB_TOKEN }}
ghr
:
true
-
run
:
|
gox -parallel 4 -osarch="linux/amd64 darwin/amd64 linux/arm windows/amd6" -ldflags="-extldflags '-static' -s -w" -output="bin/{{.Dir}}_v${{steps.semrel.outputs.version}}_{{.OS}}_{{.Arch}}" ./cmd/commit-analyzer-cz/
if
:
steps.semrel.outputs.version != ''
-
run
:
ghr $(cat .ghr) bin/
if
:
steps.semrel.outputs.version != ''
env
:
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment