diff --git a/.github/workflows/ci-testing.yml b/.github/workflows/ci-testing.yml new file mode 100644 index 0000000..02eebd0 --- /dev/null +++ b/.github/workflows/ci-testing.yml @@ -0,0 +1,40 @@ +name: CI Testing + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + test-unit: + name: "CI Unit Testing" + timeout-minutes: 5 + runs-on: ${{ matrix.os }} + + strategy: + fail-fast: false + matrix: + os: + - "ubuntu-latest" + node: + - "14" + - "12" + + steps: + - name: Checkout + uses: actions/checkout@v2.3.4 + + - name: Setup Node.js version ${{ matrix.node }} + uses: actions/setup-node@v2.4.0 + with: + node-version: ${{ matrix.node }} + cache: "yarn" + + - name: Install Dependencies + run: yarn install --frozen-lockfile + + - name: Unit Test + run: yarn run test:unit diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..e37141f --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,32 @@ +name: Lint + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + lint: + name: Lint + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2.3.4 + + - name: Setup Node.js + uses: actions/setup-node@v2.4.0 + with: + cache: "yarn" + + - name: Install Dependencies + run: yarn install --frozen-lockfile + + - name: Lint code + run: yarn run lint + + - name: Check Lock File Changes + run: yarn && echo "Listing changed files:" && git diff --name-only --exit-code && echo "No files changed during lint." diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 485be37..0000000 --- a/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -language: node_js - -node_js: - - node - - lts/* - -jobs: - allow_failures: - - node_js: node - -cache: - yarn: true - -script: - - yarn run test:unit - - yarn run build - - yarn run docs:build