-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
285 changed files
with
19,186 additions
and
9,142 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: build | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
push: | ||
branches: | ||
- 'master' | ||
tags: | ||
- 'v*' | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
build: | ||
runs-on: [self-hosted, nebula-fast] | ||
container: | ||
image: reg.vesoft-inc.com/ci/ubuntu:20.04-docker | ||
volumes: | ||
- /var/run/docker.sock:/var/run/docker.sock | ||
steps: | ||
- uses: webiny/[email protected] | ||
with: | ||
run: sh -c "find . -mindepth 1 -delete" | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19 | ||
cache: true | ||
- run: | | ||
go env -w GOFLAGS=-buildvcs=false | ||
git config --global --add safe.directory $(pwd) | ||
- run: make lint | ||
- run: make test | ||
- uses: codecov/codecov-action@v2 | ||
- uses: docker/login-action@v1 | ||
if: success() && startsWith(github.ref, 'refs/tags/') | ||
with: | ||
registry: ${{ secrets.HARBOR_REGISTRY }} | ||
username: ${{ secrets.HARBOR_USERNAME }} | ||
password: ${{ secrets.HARBOR_PASSWORD }} | ||
- uses: goreleaser/goreleaser-action@v2 | ||
if: success() && startsWith(github.ref, 'refs/tags/') | ||
with: | ||
version: latest | ||
distribution: goreleaser | ||
args: release --rm-dist | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,16 @@ | ||
# Binaries for programs and plugins | ||
*.exe | ||
*.exe~ | ||
*.dll | ||
*.so | ||
*.dylib | ||
|
||
# Test binary, build with `go test -c` | ||
*.test | ||
|
||
# Output of the go coverage tool, specifically when used with LiteIDE | ||
*.out | ||
# editor and IDE paraphernalia | ||
.idea | ||
vendor | ||
*.swp | ||
*.swo | ||
*.log | ||
|
||
# macOS | ||
*.gz | ||
*.tgz | ||
*~ | ||
bin | ||
.DS_Store | ||
*.out | ||
*.log | ||
dist/ | ||
|
||
err/ | ||
vendor/ | ||
nebula-importer | ||
coverage.* | ||
|
||
# IDE | ||
.vscode/ | ||
.idea/ |
Oops, something went wrong.