You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by ju...@apache.org on 2020/10/21 00:51:33 UTC
[apisix-dashboard] branch master updated: fix: API CICD (#573)
This is an automated email from the ASF dual-hosted git repository.
juzhiyuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-dashboard.git
The following commit(s) were added to refs/heads/master by this push:
new d4e372d fix: API CICD (#573)
d4e372d is described below
commit d4e372d6942fd04ca35bf40da5e1e2e4c4b29dfe
Author: nic-chen <33...@users.noreply.github.com>
AuthorDate: Wed Oct 21 08:51:24 2020 +0800
fix: API CICD (#573)
Co-authored-by: 琚致远 <ju...@apache.org>
---
.github/workflows/api_cicd.yml | 32 ++++++++------------------------
1 file changed, 8 insertions(+), 24 deletions(-)
diff --git a/.github/workflows/api_cicd.yml b/.github/workflows/api_cicd.yml
index b8cab6b..a4c31ba 100644
--- a/.github/workflows/api_cicd.yml
+++ b/.github/workflows/api_cicd.yml
@@ -18,33 +18,12 @@ jobs:
env:
ALLOW_NONE_AUTHENTICATION: yes
- mysql:
- image: mysql:8.0
- env:
- MYSQL_ROOT_PASSWORD: 123456
- ports:
- - '3306:3306'
- options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
-
-
steps:
- uses: actions/checkout@v2
-
- - name: run apisix
- run: |
- network=$(docker network ls | grep github_network | awk '{print $2}')
- docker run --name apisix -d -p 9080:9080 \
- -v ${{ github.workspace }}/.github/apisix-config.yaml:/usr/local/apisix/conf/config.yaml \
- --network "$network" --network-alias apisix \
- apache/apisix:dev
- sleep 5
- docker logs apisix
- - name: setting up database
- run: |
- mysql -h 127.0.0.1 --port 3306 -u root -p123456 < ./api/script/db/schema.sql
- - name: ping apisix
+
+ - name: run Makefile
run: |
- curl 127.0.0.1:9080
+ make license-check
- name: get lua lib
run: |
wget https://github.com/api7/dag-to-lua/archive/v1.1.tar.gz
@@ -68,6 +47,11 @@ jobs:
sudo mv ./apisix-master/apisix/* ./build-tools/apisix/
rm -rf ./apisix-master
cd ./build-tools/ && lua schema-sync.lua > ../conf/schema.json
+ - name: run test
+ working-directory: ./api
+ run: |
+ export APIX_ETCD_ENDPOINTS=127.0.0.1:2379
+ go test ./...
- uses: Azure/docker-login@v1
with:
login-server: apisixacr.azurecr.cn