rm: test workflow
All checks were successful
All checks were successful
This commit is contained in:
parent
49c91795c6
commit
e780c3f2ed
37
.github/e2e-linux.yml
vendored
37
.github/e2e-linux.yml
vendored
@ -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
|
|
37
.github/e2e-wins.yml
vendored
37
.github/e2e-wins.yml
vendored
@ -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/...
|
|
39
.github/style_check.yml
vendored
39
.github/style_check.yml
vendored
@ -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
|
|
32
.github/ut-check-win.yml
vendored
32
.github/ut-check-win.yml
vendored
@ -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\...
|
|
33
.github/ut-check.yml
vendored
33
.github/ut-check.yml
vendored
@ -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
|
|
Loading…
Reference in New Issue
Block a user