Skip to content

Commit

Permalink
refactored (#264)
Browse files Browse the repository at this point in the history
  • Loading branch information
veezhang authored May 18, 2023
1 parent 4eeb7d0 commit 9f55c86
Show file tree
Hide file tree
Showing 285 changed files with 19,186 additions and 9,142 deletions.
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

0 comments on commit 9f55c86

Please sign in to comment.