-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# These files will be normalized on commit (CRLF converted to LF) - asterisk is a wildcard | ||
* text eol=lf | ||
|
||
# These files will NOT be normalized | ||
*.png -text | ||
*.gif -text | ||
*.jpg -text | ||
*.jpeg -text | ||
*.ico -text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: master | ||
on: | ||
push: | ||
branches: | ||
- master | ||
jobs: | ||
unit-test: | ||
name: Unit Test | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
nodeVersion: [ 16, 18, 20 ] | ||
jdkVersion: [ openjdk9, openjdk10, openjdk11, openjdk21 ] | ||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.nodeVersion }} | ||
- name: Unit test with code coverage analysis | ||
run: npm test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Pull Requests | ||
on: | ||
pull_request: | ||
types: [opened, edited, reopened, synchronize] | ||
branches: | ||
- master | ||
jobs: | ||
unit-test: | ||
name: Unit Test with Code Coverage Analysis | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v3 | ||
- name: Set up the Rust toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: stable | ||
- name: Install cargo-make | ||
uses: davidB/rust-cargo-make@v1 | ||
with: | ||
version: latest | ||
- name: Check for formatting issues | ||
run: cargo make format-ci | ||
- name: Check for linting issues | ||
run: cargo make lint | ||
- name: Unit test with code coverage analysis | ||
run: cargo make test-coverage-ci | ||
- name: Upload test coverage report to Codecov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
# We specify the token below to mitigate the impact of the bug mentioned here: | ||
# https://community.codecov.com/t/upload-issues-unable-to-locate-build-via-github-actions-api/3954 | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
fail_ci_if_error: true | ||
files: lcov.info |