diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml new file mode 100644 index 00000000..52bf1c08 --- /dev/null +++ b/.github/workflows/unit-test.yml @@ -0,0 +1,22 @@ +name: Unit Test + +on: [push] + +jobs: + build: + + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + node: [8, 10, 12] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node }} + - run: npm install + - run: npm run lint + - run: npm run test:report diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 102469eb..00000000 --- a/.travis.yml +++ /dev/null @@ -1,27 +0,0 @@ -language: node_js - -node_js: - - node - - "8" - - "10" - -os: - - osx - - windows - - linux - -notifications: - email: - on_failure: always - on_success: never - -cache: - directories: - - node_modules - -install: - - npm install - -script: - - npm run lint - - npm run test:report diff --git a/README.md b/README.md index 847ba09f..a98dbd2f 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@