feat: mq push consume supports ratelimit #959
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: unit-test | |
on: | |
push: | |
paths-ignore: | |
- "website/**" | |
branches: | |
- "master" | |
pull_request_target: | |
paths-ignore: | |
- "website/**" | |
branches: | |
- "master" | |
jobs: | |
test: | |
name: Test on ubuntu | |
environment: | |
name: tablestore-live | |
env: | |
TABLESTORE_ACCESSKEYID_ENV: ${{ secrets.TABLESTORE_ACCESSKEYID_ENV }} | |
TABLESTORE_ACCESSKEYSECRET_ENV: ${{ secrets.TABLESTORE_ACCESSKEYSECRET_ENV }} | |
TABLESTORE_ENDPOINT_ENV: ${{ secrets.TABLESTORE_ENDPOINT_ENV }} | |
TABLESTORE_INSTANCE_ENV: ${{ secrets.TABLESTORE_INSTANCE_ENV }} | |
strategy: | |
fail-fast: true | |
matrix: | |
go: ["1.19.x"] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code into the Go module directory | |
uses: actions/[email protected] | |
- name: docker-compose | |
run: docker-compose -f test/docker-compose.yaml up -d | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cache/go-build | |
~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go }} | |
id: go | |
- name: Get dependencies | |
run: | | |
go env | |
go mod tidy && git diff --exit-code go.mod go.sum | |
- name: Test | |
run: | | |
make unit-test | |
- name: Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{secrets.CODECOV_TOKEN}} | |
fail_ci_if_error: true | |
files: ./coverage.txt | |
name: jupiter | |
verbose: true |