This repository has been archived by the owner on Jan 21, 2025. It is now read-only.
fix: add max pending ACK to the nats consumer configuration (#219) #135
Workflow file for this run
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: krt-files-downloader Tests | |
on: | |
pull_request: | |
paths: | |
- "krt-files-downloader/**/*" | |
- ".github/workflows/krt-files-downloader*" | |
push: | |
paths: | |
- "krt-files-downloader/**/*" | |
jobs: | |
test: | |
name: Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.18.x | |
- name: Test | |
run: | | |
go test -cover -v -coverprofile=coverage.out -covermode=atomic -coverpkg=./... ./... | |
working-directory: ./krt-files-downloader | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage-report | |
path: krt-files-downloader/coverage.out | |
sonarcloud: | |
name: SonarCloud | |
runs-on: ubuntu-latest | |
needs: test | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | |
- name: Download code coverage results | |
uses: actions/download-artifact@v3 | |
with: | |
name: coverage-report | |
path: krt-files-downloader | |
- name: SonarCloud Scan | |
uses: SonarSource/sonarcloud-github-action@master | |
with: | |
projectBaseDir: krt-files-downloader | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN_KRT_FD }} |