diff --git a/.github/e2e-linux.yml b/.github/e2e-linux.yml deleted file mode 100644 index f5a7298..0000000 --- a/.github/e2e-linux.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: e2e test -on: - # Trigger the workflow on push or pull request, - # but only for the master branch - push: - paths-ignore: - - '**.md' - - '**.png' - pull_request: - paths-ignore: - - '**.md' - - '**.png' -jobs: - job_1: - name: e2e test - strategy: - matrix: - os: [ubuntu-latest, macos-latest] - runs-on: ${{ matrix.os }} - steps: - - name: Install Go - uses: actions/setup-go@v2 - with: - go-version: 1.22.x - - name: Checkout code - uses: actions/checkout@v2 - - name: Go build - run: | - go build . - go install . - - name: Use goc to build self - run: | - ./goc build -o ./gocc . - - name: run e2e test - run: | - go install github.com/onsi/ginkgo/ginkgo - make e2e \ No newline at end of file diff --git a/.github/e2e-wins.yml b/.github/e2e-wins.yml deleted file mode 100644 index 4ef9f36..0000000 --- a/.github/e2e-wins.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: e2e test -on: - # Trigger the workflow on push or pull request, - # but only for the master branch - push: - paths-ignore: - - '**.md' - - '**.png' - pull_request: - paths-ignore: - - '**.md' - - '**.png' -jobs: - job_1: - name: e2e test - strategy: - matrix: - os: [windows-latest] - runs-on: ${{ matrix.os }} - steps: - - name: Install Go - uses: actions/setup-go@v2 - with: - go-version: 1.22.x - - name: Checkout code - uses: actions/checkout@v2 - - name: Go build - run: | - go build . - go install . - - name: Use goc to build self - run: | - .\goc.exe build -o gocc . - - name: run e2e test - run: | - go install github.com/onsi/ginkgo/ginkgo - ginkgo tests/e2e/... \ No newline at end of file diff --git a/.github/style_check.yml b/.github/style_check.yml deleted file mode 100644 index d4a8454..0000000 --- a/.github/style_check.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: style-check -on: - # Trigger the workflow on push or pull request, - # but only for the master branch - push: - paths-ignore: - - '**.md' - - '**.png' - pull_request: - paths-ignore: - - '**.md' - - '**.png' -jobs: - run: - name: vet and gofmt - strategy: - matrix: - go-version: [1.22.x] - runs-on: ubuntu-latest - steps: - - name: Install Go - uses: actions/setup-go@v2 - with: - go-version: ${{ matrix.go-version }} - # This step checks out a copy of your repository. - - name: Checkout code - uses: actions/checkout@v2 - - name: Go vet check - run: | - go vet ./... - - name: Gofmt check - run: | - diff=`find . -name "*.go" | xargs gofmt -s -d` - if [[ -n "${diff}" ]]; then - echo "Gofmt check failed :" - echo "${diff}" - echo "Please run this command to fix: [find . -name "*.go" | xargs gofmt -s -w]" - exit 1 - fi \ No newline at end of file diff --git a/.github/ut-check-win.yml b/.github/ut-check-win.yml deleted file mode 100644 index 6765d8b..0000000 --- a/.github/ut-check-win.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: unit test -on: - # Trigger the workflow on push or pull request, - # but only for the master branch - push: - paths-ignore: - - '**.md' - - '**.png' - pull_request: - paths-ignore: - - '**.md' - - '**.png' -jobs: - run: - name: go test on windows - strategy: - matrix: - go-version: [1.22.x] - runs-on: windows-latest - steps: - - name: Install Go - uses: actions/setup-go@v2 - with: - go-version: ${{ matrix.go-version }} - # This step checks out a copy of your repository. - - name: Checkout code - uses: actions/checkout@v2 - - name: Go test - env: - GOVERSION: ${{ matrix.go-version }} - run: | - go test -p 1 .\pkg\... diff --git a/.github/ut-check.yml b/.github/ut-check.yml deleted file mode 100644 index 6d36c04..0000000 --- a/.github/ut-check.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: unit test -on: - # Trigger the workflow on push or pull request, - # but only for the master branch - push: - paths-ignore: - - '**.md' - - '**.png' - pull_request: - paths-ignore: - - '**.md' - - '**.png' -jobs: - run: - name: go test on linux - strategy: - matrix: - go-version: [1.22.x] - runs-on: ubuntu-latest - steps: - - name: Install Go - uses: actions/setup-go@v2 - with: - go-version: ${{ matrix.go-version }} - # This step checks out a copy of your repository. - - name: Checkout code - uses: actions/checkout@v2 - - name: Go test - env: - GOVERSION: ${{ matrix.go-version }} - run: | - make test - bash <(curl -s https://codecov.io/bash) -F unittest-$GOVERSION \ No newline at end of file