Skip to content

Commit

Permalink
testing qodana
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenvechain committed Dec 21, 2023
1 parent 352fbc6 commit eb1a2ff
Show file tree
Hide file tree
Showing 9 changed files with 187 additions and 1 deletion.
60 changes: 60 additions & 0 deletions .github/workflows/qodana-analysis.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Test

on: [push, pull_request]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
unit_tests:
strategy:
matrix:
go-version: [1.21.x]
os: [ubuntu-latest, macos-latest, windows-latest]
include:
- go-version: 1.19.x
os: ubuntu-latest
- go-version: 1.20.x
os: ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}

- name: Make all
run: make all

- name: Make Test
run: make test
test_coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 1.21.x

- name: Make all
run: make all

- name: Setup
run: mkdir -p .qodana/code-coverage

- name: Make Coverage
run: make test-coverage

- name: 'Qodana Scan'
uses: JetBrains/[email protected]
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
with:
pr-mode: true
6 changes: 6 additions & 0 deletions .idea/ktfmt.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/project.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/thor.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 29 additions & 0 deletions .idea/watcherTasks.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

62 changes: 62 additions & 0 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ all: thor disco
clean:
-rm -rf \
$(CURDIR)/bin/thor \
$(CURDIR)/bin/disco
$(CURDIR)/bin/disco

test:| go_version_check
@go test -cover $(PACKAGES)

test-coverage:| go_version_check
@go test -race -coverprofile=.qodana/code-coverage/coverage.out -covermode=atomic $(PACKAGES)

0 comments on commit eb1a2ff

Please sign in to comment.