feat: create scaffold project

This commit is contained in:
debugtalk
2022-01-08 22:09:08 +08:00
parent 2ec2b86c05
commit c6549f4012
7 changed files with 172 additions and 65 deletions

34
.github/workflows/scaffold.yml vendored Normal file
View File

@@ -0,0 +1,34 @@
name: Run scaffold
on:
pull_request:
types: [synchronize]
jobs:
scaffold:
strategy:
fail-fast: true
matrix:
go-version:
- 1.13.x
- 1.14.x
- 1.15.x
- 1.16.x
- 1.17.x
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Build hrp binary
run: make build
- name: Check hrp version
run: ./output/hrp -v
- name: Run start project
run: ./output/hrp startproject demo
- name: Run demo tests
run: ./output/hrp run demo/testcases/demo.json demo/testcases/demo.yaml