From 8908d0611b65e91bf3a6c0af57584774540f8f94 Mon Sep 17 00:00:00 2001 From: Rudolf Tucek Date: Wed, 8 Sep 2021 14:19:31 +0200 Subject: [PATCH 1/4] Remove Travis CI --- .travis.yml | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 .travis.yml 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 From 681baec7fc9a2a8cc169b9868406419ce37dafd5 Mon Sep 17 00:00:00 2001 From: Rudolf Tucek Date: Wed, 8 Sep 2021 14:20:32 +0200 Subject: [PATCH 2/4] Add Github workflow for linting --- .github/workflows/lint.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..5b7816a --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,31 @@ +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." From f7f2e4fa20d5097688f1ea588caf40f38d4c267f Mon Sep 17 00:00:00 2001 From: Rudolf Tucek Date: Wed, 8 Sep 2021 14:45:17 +0200 Subject: [PATCH 3/4] Add CI unit testing --- .github/workflows/ci-testing.yml | 40 ++++++++++++++++++++++++++++++++ .github/workflows/lint.yml | 1 + 2 files changed, 41 insertions(+) create mode 100644 .github/workflows/ci-testing.yml diff --git a/.github/workflows/ci-testing.yml b/.github/workflows/ci-testing.yml new file mode 100644 index 0000000..c928a39 --- /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 for ${{ 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: yarn test on Ubuntu + run: yarn run test:unit diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 5b7816a..e37141f 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -12,6 +12,7 @@ jobs: lint: name: Lint runs-on: ubuntu-latest + steps: - name: Checkout uses: actions/checkout@v2.3.4 From 47b7080c4e3713a50266a5b3e0b443afd83d5b42 Mon Sep 17 00:00:00 2001 From: Rudolf Tucek Date: Thu, 9 Sep 2021 00:04:00 +0200 Subject: [PATCH 4/4] Minor tweaks --- .github/workflows/ci-testing.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-testing.yml b/.github/workflows/ci-testing.yml index c928a39..02eebd0 100644 --- a/.github/workflows/ci-testing.yml +++ b/.github/workflows/ci-testing.yml @@ -27,7 +27,7 @@ jobs: - name: Checkout uses: actions/checkout@v2.3.4 - - name: Setup Node.js for ${{ matrix.node }} + - name: Setup Node.js version ${{ matrix.node }} uses: actions/setup-node@v2.4.0 with: node-version: ${{ matrix.node }} @@ -36,5 +36,5 @@ jobs: - name: Install Dependencies run: yarn install --frozen-lockfile - - name: yarn test on Ubuntu + - name: Unit Test run: yarn run test:unit