Skip to content

Commit

Permalink
git hub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
joeferner committed Nov 24, 2023
1 parent 4f3a648 commit 9575e85
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 20 deletions.
9 changes: 9 additions & 0 deletions .gitattributes
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
23 changes: 23 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
@@ -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
24 changes: 24 additions & 0 deletions .github/workflows/pull-requests.yml
Original file line number Diff line number Diff line change
@@ -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
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

0 comments on commit 9575e85

Please sign in to comment.