fix dir
This commit is contained in:
parent
9b8b1e418f
commit
1d63acf7ef
1 changed files with 21 additions and 28 deletions
49
.github/workflows/unit-test.yml
vendored
49
.github/workflows/unit-test.yml
vendored
|
|
@ -5,6 +5,7 @@ on:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
# 象传服务配置
|
# 象传服务配置
|
||||||
XIANG_MODE: debug
|
XIANG_MODE: debug
|
||||||
|
|
@ -44,14 +45,6 @@ jobs:
|
||||||
go: [1.17]
|
go: [1.17]
|
||||||
db: [SQLite3]
|
db: [SQLite3]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Code
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Keep .github only
|
|
||||||
run: |
|
|
||||||
rm -rf *
|
|
||||||
ls -l
|
|
||||||
|
|
||||||
- name: Checkout Kun
|
- name: Checkout Kun
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
|
|
@ -64,12 +57,6 @@ jobs:
|
||||||
repository: yaoapp/xun
|
repository: yaoapp/xun
|
||||||
path: xun
|
path: xun
|
||||||
|
|
||||||
- name: Test mv
|
|
||||||
run: |
|
|
||||||
mv xun ../
|
|
||||||
ls -l .
|
|
||||||
ls -l ../
|
|
||||||
|
|
||||||
- name: Checkout Gou
|
- name: Checkout Gou
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
|
|
@ -77,15 +64,21 @@ jobs:
|
||||||
path: gou
|
path: gou
|
||||||
token: ${{ secrets.TOKEN }}
|
token: ${{ secrets.TOKEN }}
|
||||||
|
|
||||||
- name: Checkout Xiang
|
- name: Move lib
|
||||||
uses: actions/checkout@v2
|
run: |
|
||||||
with:
|
mv kun ../
|
||||||
path: xiang
|
mv xun ../
|
||||||
|
mv gou ../
|
||||||
|
ls -l .
|
||||||
|
ls -l ../
|
||||||
|
|
||||||
- name: Show Dir
|
- name: Checkout Code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: List dir
|
||||||
run: |
|
run: |
|
||||||
ls -l .
|
ls -l .
|
||||||
ls -l ./xiang/
|
ls -l ../
|
||||||
|
|
||||||
- name: Setup ${{ matrix.db }}
|
- name: Setup ${{ matrix.db }}
|
||||||
uses: ./.github/actions/setup-db
|
uses: ./.github/actions/setup-db
|
||||||
|
|
@ -102,9 +95,9 @@ jobs:
|
||||||
|
|
||||||
- name: Setup Go Tools
|
- name: Setup Go Tools
|
||||||
run: |
|
run: |
|
||||||
if [[ "${GO111MODULE}" = "on" ]]; then cd xiang && go mod download; fi
|
if [[ "${GO111MODULE}" = "on" ]]; then go mod download; fi
|
||||||
if [[ "${GO111MODULE}" = "on" ]]; then export PATH="${GOPATH}/bin:${GOROOT}/bin:${PATH}"; fi
|
if [[ "${GO111MODULE}" = "on" ]]; then export PATH="${GOPATH}/bin:${GOROOT}/bin:${PATH}"; fi
|
||||||
if [[ "${GO111MODULE}" = "on" ]]; then cd xiang && make tools; fi
|
if [[ "${GO111MODULE}" = "on" ]]; then make tools; fi
|
||||||
|
|
||||||
- name: Setup ENV & Host
|
- name: Setup ENV & Host
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -126,12 +119,12 @@ jobs:
|
||||||
XIANG_DB_PRIMARY="$DB_HOST" make test
|
XIANG_DB_PRIMARY="$DB_HOST" make test
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd xiang && make vet
|
make vet
|
||||||
cd xiang && make fmt-check
|
make fmt-check
|
||||||
cd xiang && make misspell-check
|
make misspell-check
|
||||||
cd xiang && make plugin
|
make plugin
|
||||||
cd xiang && make migrate
|
make migrate
|
||||||
cd xiang && make test
|
make test
|
||||||
|
|
||||||
- name: Codecov Report
|
- name: Codecov Report
|
||||||
uses: codecov/codecov-action@v2
|
uses: codecov/codecov-action@v2
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue