diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml deleted file mode 100644 index 3ac09a2aca..0000000000 --- a/.github/release-drafter.yml +++ /dev/null @@ -1,2 +0,0 @@ -# Use https://github.com/wiremock/.github/blob/main/.github/release_drafter.yml -_extends: .github diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 10ec7e3c5b..67005b2651 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -14,51 +14,47 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest, macos-latest, windows-latest] - jdk: [11, 17] + os: [ ubuntu-latest, macos-latest, windows-latest ] + jdk: [ 11, 17 ] runs-on: ${{ matrix.os }} env: - JDK_VERSION: ${{ matrix.jdk }} + JDK_VERSION: ${{ matrix.jdk }} steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - name: Set up JDK - uses: actions/setup-java@v3 - with: - java-version: ${{ matrix.jdk }} - distribution: 'temurin' - - name: Grant execute permission for gradlew - run: chmod +x gradlew - - name: Set up node using nvm - uses: dcodeIO/setup-node-nvm@v5 - with: - node-version: 20.10.0 + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Set up JDK + uses: actions/setup-java@v3 + with: + java-version: ${{ matrix.jdk }} + distribution: 'temurin' + - name: Grant execute permission for gradlew + run: chmod +x gradlew -# - name: Cache SonarCloud packages -# uses: actions/cache@v1 -# with: -# path: ~/.sonar/cache -# key: ${{ runner.os }}-sonar -# restore-keys: ${{ runner.os }}-sonar - - name: Cache Gradle packages - uses: actions/cache@v3 - with: - path: ~/.gradle/caches - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} - restore-keys: ${{ runner.os }}-gradle + # - name: Cache SonarCloud packages + # uses: actions/cache@v1 + # with: + # path: ~/.sonar/cache + # key: ${{ runner.os }}-sonar + # restore-keys: ${{ runner.os }}-sonar + - name: Cache Gradle packages + uses: actions/cache@v3 + with: + path: ~/.gradle/caches + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} + restore-keys: ${{ runner.os }}-gradle -# - name: Test WireMock with Sonarqube -# if: ${{ matrix.os == 'ubuntu-latest' && matrix.jdk == 11 && github.event_name == 'push' }} -# env: -# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any -# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} -# run: ./gradlew check sonarqube --stacktrace --no-daemon + # - name: Test WireMock with Sonarqube + # if: ${{ matrix.os == 'ubuntu-latest' && matrix.jdk == 11 && github.event_name == 'push' }} + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any + # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + # run: ./gradlew check sonarqube --stacktrace --no-daemon - - name: Test WireMock - if: ${{ !(matrix.os == 'ubuntu-latest' && matrix.jdk == 11 && github.event_name == 'push') }} - run: ./gradlew check --stacktrace --no-daemon + - name: Test WireMock + if: ${{ !(matrix.os == 'ubuntu-latest' && matrix.jdk == 11 && github.event_name == 'push') }} + run: ./gradlew check --stacktrace --no-daemon # - name: Archive WireMock test report - ${{ matrix.os }} JDK ${{ matrix.jdk }} # if: always() diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 0102da9b2c..9ba4561ceb 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -43,10 +43,6 @@ jobs: distribution: 'temurin' - name: Grant execute permission for gradlew run: chmod +x gradlew - - name: Set up node using nvm - uses: dcodeIO/setup-node-nvm@v5 - with: - node-version: 20.10.0 - name: Cache Gradle packages uses: actions/cache@v3 with: diff --git a/.gitignore b/.gitignore index 10f9f7f667..749c4f0c44 100644 --- a/.gitignore +++ b/.gitignore @@ -60,7 +60,8 @@ bin # WIREMOCK # ################# -/mappings/ +mappings/ +__files src/main/resources/assets/webapp/ scripts/client-cert.* @@ -70,4 +71,4 @@ notes.txt # MINE # Guide.txt -docker \ No newline at end of file +docker diff --git a/.run/Build WireMock.run.xml b/.run/Build WireMock.run.xml index f855fd701f..95941180cd 100644 --- a/.run/Build WireMock.run.xml +++ b/.run/Build WireMock.run.xml @@ -22,4 +22,4 @@ false - \ No newline at end of file + diff --git a/.run/Run WireMock.run.xml b/.run/Run WireMock.run.xml new file mode 100644 index 0000000000..0913874c4d --- /dev/null +++ b/.run/Run WireMock.run.xml @@ -0,0 +1,8 @@ + + + + \ No newline at end of file diff --git a/.run/WebApp lint --fix.run.xml b/.run/WebApp lint --fix.run.xml new file mode 100644 index 0000000000..9239f30f53 --- /dev/null +++ b/.run/WebApp lint --fix.run.xml @@ -0,0 +1,13 @@ + + + + + +