diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..12b7161 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml new file mode 100644 index 0000000..016bbb1 --- /dev/null +++ b/.github/workflows/master.yml @@ -0,0 +1,23 @@ +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: npm ci + run: npm ci + - name: Unit test + run: npm test diff --git a/.github/workflows/pull-requests.yml b/.github/workflows/pull-requests.yml new file mode 100644 index 0000000..c5fd0d6 --- /dev/null +++ b/.github/workflows/pull-requests.yml @@ -0,0 +1,24 @@ +name: Pull Requests +on: + pull_request: + types: [opened, edited, reopened, synchronize] + 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: npm ci + run: npm ci + - name: Unit test + run: npm test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 704714b..0000000 --- a/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -language: java -sudo: false -jdk: - - openjdk9 - - openjdk10 - - openjdk11 - - openjdk21 -env: - - NODE_VERSION=16 CC=clang CXX=clang++ - - NODE_VERSION=18 CC=clang CXX=clang++ - - NODE_VERSION=20 CC=clang CXX=clang++ -before_install: - - nvm install $NODE_VERSION -before_script: - - npm install -script: - - npm test -notifications: - email: - on_success: "never"