Skip to content

Commit

Permalink
Merge pull request #40 from fingerprintjs/feature/inter-541-update
Browse files Browse the repository at this point in the history
Feature/inter 541 update
  • Loading branch information
Sergey Shelomentsev authored Mar 27, 2024
2 parents 510380f + 7bfc5f3 commit 19496b5
Show file tree
Hide file tree
Showing 18 changed files with 217 additions and 4,523 deletions.
1 change: 0 additions & 1 deletion .github/resources/logo_dark.svg

This file was deleted.

1 change: 0 additions & 1 deletion .github/resources/logo_light.svg

This file was deleted.

64 changes: 5 additions & 59 deletions .github/workflows/analyze-commits.yml
Original file line number Diff line number Diff line change
@@ -1,65 +1,11 @@
name: Analyze Commit Messages
on: [pull_request]
on:
pull_request:

permissions:
pull-requests: write
contents: write
jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v5
id: commitlint
- if: ${{ failure() && steps.commitlint.outcome == 'failure' }}
uses: marocchino/sticky-pull-request-comment@3d60a5b2dae89d44e0c6ddc69dd7536aec2071cd
with:
header: Commitlint
recreate: true
message: |
## Wrong commit message format detected
We use [Semantic Commit Messages](https://gist.github.com/joshbuchea/6f47e86d2510bce28f8e7f42ae84c716) in our project.
> **Warning**
> Probably you forgot to activate local git hooks.
Run the next command in the project root to activate local hooks:
```sh
sh ./install_hooks.sh
```
More info you can find in [job logs](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
- if: ${{ success() }}
uses: marocchino/sticky-pull-request-comment@3d60a5b2dae89d44e0c6ddc69dd7536aec2071cd
with:
header: Commitlint
hide: true
hide_classify: "OUTDATED"
release-notes-comment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Collect semantic-release-info
id: semantic_release_info
uses: fingerprintjs/action-semantic-release-info@v1
- if: ${{ steps.semantic_release_info.outputs.no_release == 'false' }}
name: Add comment to the PR
uses: marocchino/sticky-pull-request-comment@3d60a5b2dae89d44e0c6ddc69dd7536aec2071cd
with:
header: ReleasePreview
recreate: true
message: |
## This PR will create a ${{steps.semantic_release_info.outputs.type}} release :rocket:
${{steps.semantic_release_info.outputs.notes}}
- if: ${{ steps.semantic_release_info.outputs.no_release == 'true' }}
name: Add comment to the PR
uses: marocchino/sticky-pull-request-comment@3d60a5b2dae89d44e0c6ddc69dd7536aec2071cd
with:
header: ReleasePreview
recreate: true
message: |
## This PR will not create a new release :rocket:
analyze-commits:
name: Generate docs and coverage report
uses: fingerprintjs/dx-team-toolkit/.github/workflows/analyze-commits.yml@v1
24 changes: 13 additions & 11 deletions .github/workflows/functional.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
java: [ '8', '11' ]
java: [ '8', '11', '17', '21' ]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-java@v3
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '${{ matrix.java }}'
Expand All @@ -31,11 +31,13 @@ jobs:
FPJS_API_REGION: "${{ secrets.FPJS_API_REGION }}"
FPJS_VISITOR_ID: "${{ secrets.FPJS_VISITOR_ID }}"
FPJS_REQUEST_ID: "${{ secrets.FPJS_REQUEST_ID }}"
- name: Report Status
if: always()
uses: ravsamhq/notify-slack-action@0d9c6ff1de9903da88d24c0564f6e83cb28faca9
with:
status: ${{ job.status }}
notification_title: 'Java ${{ matrix.java }} SDK Functional Test has {status_message}'
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

report_status:
needs: functional_tests
if: always()
uses: fingerprintjs/dx-team-toolkit/.github/workflows/report-workflow-status.yml@v1
with:
notification_title: 'Node SDK Functional Tests has {status_message}'
job_status: ${{ needs.functional_tests.result }}
secrets:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
Loading

0 comments on commit 19496b5

Please sign in to comment.