build(deps): bump github.com/gin-gonic/gin from 1.7.4 to 1.9.1 #55
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [ '*' ] | |
| pull_request: | |
| branches: [ '*' ] | |
| jobs: | |
| unit-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up Go | |
| uses: actions/setup-go@v2 | |
| with: | |
| go-version: 1.16 | |
| - name: Build | |
| run: go build -v cmd/webhook/main.go | |
| - name: Test | |
| run: go test -v ./... | |
| docker-build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Build the Docker image | |
| run: docker build . -t webhook:latest | |
| e2e-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up Go | |
| uses: actions/setup-go@v2 | |
| with: | |
| go-version: 1.16 | |
| - name: modify host | |
| run: cd test/e2e/pretest && sudo ./modify_host.sh | |
| - name: run e2e test | |
| run: cd test/e2e && ./test.sh | |
| adaptor-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up Go | |
| uses: actions/setup-go@v2 | |
| with: | |
| go-version: 1.16 | |
| - name: download minikube | |
| run: curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && sudo install minikube-linux-amd64 /usr/local/bin/minikube | |
| - name: start minikube | |
| run: minikube start | |
| - name: setup k8s | |
| run: kubectl create namespace kubesphere-authz-system && kubectl --namespace=kubesphere-authz-system apply -f test/adaptor/crd_example.yaml | |
| - name: install crd | |
| run: make install | |
| - name: run test | |
| run: cd test/adaptor && go run . | |