Skip to content

Commit

Permalink
refactor: use qodana local
Browse files Browse the repository at this point in the history
  • Loading branch information
laigasus committed May 6, 2024
1 parent 7301900 commit 2342806
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 75 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: CI - test

on:
push:
branches: [ "main", "develop" ]
pull_request:
branches: [ "main", "develop" ]

permissions:
contents: read
checks: write
pull-requests: write

jobs:
build:
name: Build and test project
runs-on: ubuntu-latest

steps:
- name: Checkout the code
uses: actions/checkout@v3
with:
token: ${{ secrets.ACTION_TOKEN }}
submodules: true

- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'corretto'

- name: Grant execute permission for gradlew
run: |
chmod +x ./gradlew
- name: Test with Gradle
run: |
./gradlew test
- name: Publish result of unit test
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: "**/build/test-results/test/TEST-*.xml"

- name: Publish failure of unit test
uses: mikepenz/action-junit-report@v3
if: always()
with:
report_paths: '**/build/test-results/test/TEST-*.xml'
70 changes: 0 additions & 70 deletions .github/workflows/code_quality.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,8 @@ private LogoutHandler logoutHandler() {
@Bean
CorsConfigurationSource corsConfigurationSource() {
CorsConfiguration configuration = new CorsConfiguration();
configuration.setAllowedOrigins(List.of(
"http://localhost:8080",
"https://blisgo.up.railway.app",
"https://blisgo.org",
"https://www.blisgo.org"));
configuration.setAllowedOrigins(
List.of("http://localhost:8080", "https://blisgo.org", "https://www.blisgo.org"));
configuration.setAllowedMethods(List.of(
HttpMethod.GET.name(),
HttpMethod.POST.name(),
Expand Down

0 comments on commit 2342806

Please sign in to comment.