Skip to content

Commit

Permalink
fix(server): ignore cover.out file since ci pipeline generates it now
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniloMurer committed Nov 20, 2024
1 parent 04b186e commit f39c412
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 316 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,18 @@ on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
sonarcloud:
name: SonarQube Cloud
build:
name: build & test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: test
uses: actions/setup-go@v5.1.0
with:
go-version: 1.23.0
- run: cd server && go test -json -coverprofile=cover.out ./server...
- name: SonarQube Cloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@
**/.env.*
!.env.example

**/*.out
12 changes: 11 additions & 1 deletion .run/test_server.run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,17 @@
<configuration default="false" name="test:server" type="GoTestRunConfiguration" factoryName="Go Test">
<module name="triffgonix" />
<working_directory value="$PROJECT_DIR$/server" />
<go_parameters value="-i" />
<go_parameters value="-i -coverprofile=cover.out" />
<EXTENSION ID="net.ashald.envfile">
<option name="IS_ENABLED" value="false" />
<option name="IS_SUBST" value="false" />
<option name="IS_PATH_MACRO_SUPPORTED" value="false" />
<option name="IS_IGNORE_MISSING_FILES" value="false" />
<option name="IS_ENABLE_EXPERIMENTAL_INTEGRATIONS" value="false" />
<ENTRIES>
<ENTRY IS_ENABLED="true" PARSER="runconfig" IS_EXECUTABLE="false" />
</ENTRIES>
</EXTENSION>
<kind value="DIRECTORY" />
<package value="server" />
<directory value="$PROJECT_DIR$/server" />
Expand Down
Loading

0 comments on commit f39c412

Please sign in to comment.