Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactored #264

Merged
merged 1 commit into from
May 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .dockerignore

This file was deleted.

12 changes: 0 additions & 12 deletions .editorconfig

This file was deleted.

53 changes: 53 additions & 0 deletions .github/workflows/build.yml
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 }}
67 changes: 0 additions & 67 deletions .github/workflows/package.yaml

This file was deleted.

24 changes: 0 additions & 24 deletions .github/workflows/pull_request.yaml

This file was deleted.

72 changes: 0 additions & 72 deletions .github/workflows/release.yaml

This file was deleted.

33 changes: 12 additions & 21 deletions .gitignore
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/
Loading