Browse Source

tests

remotes/github/main
Дмитрий 3 years ago
parent
commit
da2c5eea45
  1. 29
      .github/workflows/runtests.yml
  2. 1
      Makefile

29
.github/workflows/runtests.yml

@ -23,7 +23,12 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job # Steps represent a sequence of tasks that will be executed as part of the job
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: actions/setup-go@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
check-latest: true
- name: Create dir for binaries - name: Create dir for binaries
run: mkdir builds run: mkdir builds
@ -42,32 +47,32 @@ jobs:
# your code must be built into builds/ssp binary # your code must be built into builds/ssp binary
- name: Build SSP binary - name: Build SSP binary
run: go build -o builds/ssp cmd/main.go run: echo Ain\'t no ssp yet
- name: Making it executable #- name: Making it executable
run: chmod +x builds/ssp # run: chmod +x builds/ssp
# run a battery of tests # run a battery of tests
- name: happy path - name: happy path
run: ./builds/tests -test.run Test_HappyPath run: (cd builds && ./tests -test.v -test.run Test_HappyPath) && sleep 1
- name: not totally happy path, easy difficulty - name: not totally happy path, easy difficulty
run: ./builds/tests -test.run Test_LessHappyEasy run: (cd builds && ./tests -test.v -test.run Test_LessHappyEasy) && sleep 1
- name: not totally happy path, medium difficulty - name: not totally happy path, medium difficulty
run: ./builds/tests -test.run Test_LessHappyMedium run: (cd builds && ./tests -test.v -test.run Test_LessHappyMedium) && sleep 1
- name: not totally happy path, hard difficulty - name: not totally happy path, hard difficulty
run: ./builds/tests -test.run Test_LessHappyHard run: (cd builds && ./tests -test.v -test.run Test_LessHappyHard) && sleep 1
- name: not happy at all, easy difficulty - name: not happy at all, easy difficulty
run: ./builds/tests -test.run Test_NotHappyEasy run: (cd builds && ./tests -test.v -test.run Test_NotHappyEasy) && sleep 1
- name: not happy at all, medium difficulty - name: not happy at all, medium difficulty
run: ./builds/tests -test.run Test_NotHappyMedium run: (cd builds && ./tests -test.v -test.run Test_NotHappyMedium) && sleep 1
- name: not happy at all, hard difficulty - name: not happy at all, hard difficulty
run: ./builds/tests -test.run Test_NotHappyHard run: (cd builds && ./tests -test.v -test.run Test_NotHappyHard) && sleep 1
- name: not happy at all, hardcore difficulty - name: not happy at all, hardcore difficulty
run: ./builds/tests -test.run Test_NotHappyHardcore run: (cd builds && ./tests -test.v -test.run Test_NotHappyHardcore) && sleep 1

1
Makefile

@ -1,4 +1,5 @@
# port for main server # port for main server
#ver
port := 5053 port := 5053
moc_server_address := 127.0.0.1:5059,127.0.0.1:5058 moc_server_address := 127.0.0.1:5059,127.0.0.1:5058

Loading…
Cancel
Save