Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mybee
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
mybee
Commits
3aee82da
Commit
3aee82da
authored
Jan 28, 2020
by
Svetomir Smiljkovic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update github checkout action and go versions
parent
1a3e2c11
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
22 deletions
+11
-22
go.yml
.github/workflows/go.yml
+8
-16
release.yaml
.github/workflows/release.yaml
+3
-6
No files found.
.github/workflows/go.yml
View file @
3aee82da
name
:
Go
name
:
Go
on
:
[
push
,
pull_request
]
on
:
[
push
,
pull_request
]
jobs
:
jobs
:
build
:
build
:
name
:
Build
name
:
Build
runs-on
:
${{ matrix.os }}
runs-on
:
${{ matrix.os }}
strategy
:
strategy
:
matrix
:
matrix
:
go
:
[
'
1.13'
,
'
1.x'
]
os
:
[
ubuntu-latest
,
macos-latest
,
windows-latest
]
os
:
[
ubuntu-latest
,
macos-latest
,
windows-latest
]
steps
:
steps
:
-
name
:
Setup Go
-
name
:
Set up Go
uses
:
actions/setup-go@v1
uses
:
actions/setup-go@v1
with
:
with
:
go-version
:
1.x
go-version
:
${{ matrix.go }}
-
name
:
Setup env
-
name
:
Set up env
run
:
|
run
:
|
echo "::set-env name=GOPATH::$(go env GOPATH)"
echo "::set-env name=GOPATH::$(go env GOPATH)"
echo "::add-path::$(go env GOPATH)/bin"
echo "::add-path::$(go env GOPATH)/bin"
shell
:
bash
shell
:
bash
-
name
:
Checkout
-
name
:
Checkout
uses
:
actions/checkout@v
1
uses
:
actions/checkout@v
2
with
:
with
:
fetch-depth
:
1
fetch-depth
:
1
-
name
:
Cache Go modules
-
name
:
Cache Go modules
uses
:
actions/cache@v1
uses
:
actions/cache@v1
with
:
with
:
...
@@ -36,19 +33,14 @@ jobs:
...
@@ -36,19 +33,14 @@ jobs:
${{ runner.OS }}-build-${{ env.cache-name }}-
${{ runner.OS }}-build-${{ env.cache-name }}-
${{ runner.OS }}-build-
${{ runner.OS }}-build-
${{ runner.OS }}-
${{ runner.OS }}-
-
name
:
Setup GolangCI-Lint
-
name
:
Set up GolangCI-Lint
run
:
go get -u github.com/golangci/golangci-lint/cmd/golangci-lint
run
:
go get -u github.com/golangci/golangci-lint/cmd/golangci-lint
working-directory
:
~
working-directory
:
~
-
name
:
Lint
-
name
:
Lint
run
:
make lint
run
:
make lint
-
name
:
Vet
-
name
:
Vet
run
:
make vet
run
:
make vet
-
name
:
Build
-
name
:
Build
run
:
make build
run
:
make build
-
name
:
Test
-
name
:
Test
run
:
make test
run
:
make test
.github/workflows/release.yaml
View file @
3aee82da
...
@@ -11,15 +11,12 @@ jobs:
...
@@ -11,15 +11,12 @@ jobs:
goreleaser
:
goreleaser
:
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
steps
:
steps
:
-
name
:
Checkout
uses
:
actions/checkout@v1
-
name
:
Set up Go
-
name
:
Set up Go
uses
:
actions/setup-go@v1
uses
:
actions/setup-go@v1
with
:
with
:
go-version
:
1.x
go-version
:
'
1.13'
-
name
:
Checkout
uses
:
actions/checkout@v2
-
name
:
Run GoReleaser
-
name
:
Run GoReleaser
uses
:
goreleaser/goreleaser-action@v1
uses
:
goreleaser/goreleaser-action@v1
with
:
with
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment