diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml deleted file mode 100644 index ea72580..0000000 --- a/.github/workflows/codeql.yml +++ /dev/null @@ -1,76 +0,0 @@ -# For most projects, this workflow file will not need changing; you simply need -# to commit it to your repository. -# -# You may wish to alter this file to override the set of languages analyzed, -# or to provide custom queries or build logic. -# -# ******** NOTE ******** -# We have attempted to detect the languages in your repository. Please check -# the `language` matrix defined below to confirm you have the correct set of -# supported CodeQL languages. -# -name: "CodeQL" - -on: - push: - branches: [ "develop" ] - pull_request: - # The branches below must be a subset of the branches above - branches: [ "develop" ] - schedule: - - cron: '28 9 * * 5' - -jobs: - analyze: - name: Analyze - runs-on: ubuntu-latest - permissions: - actions: read - contents: read - security-events: write - - strategy: - fail-fast: false - matrix: - language: [ 'java', 'javascript' ] - # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] - # Use only 'java' to analyze code written in Java, Kotlin or both - # Use only 'javascript' to analyze code written in JavaScript, TypeScript or both - # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v2 - with: - languages: ${{ matrix.language }} - # If you wish to specify custom queries, you can do so here or in a config file. - # By default, queries listed here will override any specified in a config file. - # Prefix the list here with "+" to use these queries and those in the config file. - - # Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs - # queries: security-extended,security-and-quality - - - # Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java). - # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@v2 - - # ℹī¸ Command-line programs to run using the OS shell. - # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun - - # If the Autobuild fails above, remove it and uncomment the following three lines. - # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. - - # - run: | - # echo "Run, Build Application using script" - # ./location_of_script_within_repo/buildscript.sh - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 - with: - category: "/language:${{matrix.language}}" diff --git a/.github/workflows/forced-java-release.yml b/.github/workflows/forced-java-release.yml deleted file mode 100644 index 8a106ca..0000000 --- a/.github/workflows/forced-java-release.yml +++ /dev/null @@ -1,44 +0,0 @@ -# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created -# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages - -name: Recreate Java Release - -on: - push: - branches: - - "forced-java-release/*" - -jobs: - release: - runs-on: ubuntu-latest - steps: - - name: checkout - uses: actions/checkout@v3 - - - name: Set up JDK for Maven Deployment - uses: actions/setup-java@v3 - with: - cache: maven - java-version: "8.0.332+9" - distribution: "temurin" - server-id: ossrh - server-username: MVN_USERNAME - server-password: MVN_PASSWORD - env: - MVN_USERNAME: ${{ secrets.MAVEN_USERNAME }} - MVN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} - - - name: Install MAVEN dependencies - run: mvn dependency:resolve -B -U - - - name: Import GPG Key - uses: crazy-max/ghaction-import-gpg@v1 - env: - GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} - PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} - - - name: Deploy Maven packages - run: mvn -B deploy -Prelease - env: - MVN_USERNAME: ${{ secrets.MAVEN_USERNAME }} - MVN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} diff --git a/.github/workflows/protect-stable.yml b/.github/workflows/protect-stable.yml index 90b697d..e2761ef 100644 --- a/.github/workflows/protect-stable.yml +++ b/.github/workflows/protect-stable.yml @@ -48,16 +48,6 @@ jobs: if: steps.cache-npm.outputs.cache-hit != 'true' run: yarn install --frozen-lockfile - - name: Set up JDK - uses: actions/setup-java@v3 - with: - cache: "maven" - java-version: "8.0.332+9" - distribution: "temurin" - - - name: Install MAVEN dependencies - run: mvn dependency:resolve -B -U - - name: lint run: yarn lint diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index efeb042..57133a6 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -46,16 +46,6 @@ jobs: if: steps.cache-npm.outputs.cache-hit != 'true' run: yarn install --frozen-lockfile - - name: Set up JDK - uses: actions/setup-java@v3 - with: - cache: maven - java-version: "8.0.332+9" - distribution: "temurin" - - - name: Install MAVEN dependencies - run: mvn dependency:resolve -B -U - - name: lint run: yarn lint diff --git a/.github/workflows/release-and-publish.yml b/.github/workflows/release-and-publish.yml index 105aa7e..5a56516 100644 --- a/.github/workflows/release-and-publish.yml +++ b/.github/workflows/release-and-publish.yml @@ -46,22 +46,6 @@ jobs: if: steps.cache-npm.outputs.cache-hit != 'true' run: yarn install --frozen-lockfile - - name: Set up JDK for Maven Deployment - uses: actions/setup-java@v3 - with: - cache: maven - java-version: "8.0.332+9" - distribution: "temurin" - server-id: ossrh - server-username: MVN_USERNAME - server-password: MVN_PASSWORD - env: - MVN_USERNAME: ${{ secrets.MAVEN_USERNAME }} - MVN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} - - - name: Install MAVEN dependencies - run: mvn dependency:resolve -B -U - - name: lint run: yarn lint @@ -73,35 +57,3 @@ jobs: - name: E2E tests run: yarn test:e2e - - - name: Extract release notes - id: extract-release-notes - uses: ffurrer2/extract-release-notes@v1 - with: - changelog_file: Release-Notes.md - - - name: Import GPG Key - uses: crazy-max/ghaction-import-gpg@v1 - env: - GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} - PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} - - - name: publish maven packages - run: mvn --batch-mode deploy -Prelease - env: - MVN_USERNAME: ${{ secrets.MAVEN_USERNAME }} - MVN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} - - - name: publish npm packages - run: yarn publish-npm - env: - NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} - - - name: create release - uses: softprops/action-gh-release@v1 - if: startsWith(github.ref, 'refs/tags/') - with: - body: ${{ steps.extract-release-notes.outputs.release_notes }} - env: - # The workflow permissions of the project must be updated to 'Workflows have read and write permissions in the repository for all scopes' - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/package.json b/package.json index 15e5e2e..f8263dd 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "build": "nx run-many --target=build", "watch": "nx run-many --target=watch --parallel=10", "test": "nx run-many --target=test", - "test:ci": "yarn jest --verbose && yarn --cwd packages/java test", + "test:ci": "nx run-many --target=test", "test:watch": "nx run-many --target=test:watch --parallel=10", "test:update": "nx run-many --target=test:update", "test:e2e": "nx run-many --target=test:e2e",