1010 - master
1111 - dev
1212
13- env :
14- YC_LT_FOLDER_ID : b1gacohsvc2kc4d76tu5
15- YC_LT_AUTHORIZED_KEY_JSON : ${{ secrets.YC_LOADTESTING_CI_AUTHORIZED_KEY_JSON }}
16- YC_LT_TEST_AGENT_FILTER : " name = 'agent-pandora-perf-medium'"
17- YC_LT_TEST_EXTRA_DESCRIPTION : " GitHub Actions workflow - ${{github.run_id}}"
18- YC_LT_SKIP_TEST_CHECK : " 1"
19- YC_LT_DATA_BUCKET : ${{ secrets.YC_LT_DATA_BUCKET }}
20- YC_LT_OUTPUT_DIR : ${{github.workspace}}/performance-test/output
21-
2213jobs :
2314 run-unit-tests :
2415 name : Unit Tests
2819 strategy :
2920 fail-fast : false
3021 matrix :
31- os : [ubuntu]
22+ os : [ubuntu, macOS ]
3223 env :
3324 OS : ${{ matrix.os }}-latest
3425 GO : ${{ matrix.go-version }}
@@ -37,64 +28,18 @@ jobs:
3728 - name : Checkout code
3829 uses : actions/checkout@v3
3930
40- - name : Parse to Release
41- env :
42- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
43- RELEASE_ID : 161082234
44- run : |
45- cat <<EOF > imbalance.txt
46- ## Performance tests
47- - pandora-perf-grpc-300inst-sleep0ms: 12344
48- - pandora-perf-grpc-3000inst-sleep0ms: 15555
49- EOF
50-
51- sed G imbalance.txt > imbalance.md
52-
53- - name : Update release
54- id : update_release
55- uses : tubone24/update_release@v1.0
56- env :
57- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
58- TAG_NAME : v0.5.27.alpha13
31+ - name : Install Go
32+ uses : actions/setup-go@v3
5933 with :
60- body_path : ./imbalance.md
61- is_append_body : true
34+ go-version : 1.21.x
35+ cache : true
6236
63- # build-and-upload:
64- # runs-on: ubuntu-latest
65- # steps:
66- # - uses: actions/checkout@v4
67- # - uses: ./.github/actions/setup-yc
68- # - name: Install Go
69- # uses: actions/setup-go@v3
70- # with:
71- # go-version: 1.21.x
72- # cache: true
73- # - name: Test
74- # run: go test -race -covermode atomic ./...
75- # - name: Build
76- # run: |
77- # export GOOS=linux
78- # export CGO_ENABLED=0
79- # go build -o pandora_perf_2
80- # - name: Upload
81- # run: |
82- # source performance-test/automation/_functions.sh && source performance-test/automation/_variables.sh; yc_s3_upload ./pandora_perf_2 pandora-perf ${YC_LT_DATA_BUCKET}
83- #
84- # test-pandora-perf:
85- # needs: [ build-and-upload ]
86- # runs-on: ubuntu-latest
87- # concurrency: { group: loadtesting }
88- # steps:
89- # - uses: actions/checkout@v4
90- # - uses: ./.github/actions/setup-yc
91- # - name: Run Test HTTP-300inst-sleep0ms
92- # run: |
93- # stripped_tag="${{ github.event.release.tag_name }}"
94- # STRIPPED_TAG=${stripped_tag:1}
95- # YC_LT_VERBOSE=2 YC_LT_TEST_EXTRA_LABELS="version=${STRIPPED_TAG}" ./performance-test/automation/test.sh ./performance-test/test-config/pandora-perf-http-uri-300inst-sleep0ms
96- # - name: Upload Artifacts GRPC 300inst-sleep0ms
97- # uses: actions/upload-artifact@v4
98- # with:
99- # name: pandora-perf-grpc-300inst-sleep0ms
100- # path: ${{ env.YC_LT_OUTPUT_DIR }}
37+ - name : Test
38+ run : go test -race -coverprofile unit.txt -covermode atomic ./...
39+
40+ - name : Upload coverage report to Codecov
41+ uses : codecov/codecov-action@v3
42+ with :
43+ file : ./unit.txt
44+ flags : unit,${{ matrix.os }},go-${{ matrix.go-version }}
45+ name : unit
0 commit comments