README #75
This file contains 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: test | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.20' | |
- name: Build Gins | |
run: go build -v | |
- name: init | |
run: cd docker && chmod 751 ./deploy.sh && ./deploy.sh init | |
- name: Start Base | |
run: cd docker && ./deploy.sh base | |
- name: Start Server | |
run: cd docker && ./deploy.sh server | |
- name: Check Server | |
run: | | |
cd docker | |
sleep 10 | |
echo "Start checking the service, here are the service logs" | |
docker logs --tail 500 gins |