From 06c5b6c2f798e97a9314017e16012685fcc283cc Mon Sep 17 00:00:00 2001 From: Rudolf Tucek Date: Thu, 9 Sep 2021 03:08:22 +0200 Subject: [PATCH] Add Github action for build --- .github/workflows/ci-build.yml | 41 ++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/ci-build.yml diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml new file mode 100644 index 0000000..89eaa5b --- /dev/null +++ b/.github/workflows/ci-build.yml @@ -0,0 +1,41 @@ +name: CI Build + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + test-unit: + name: "CI Build Testing" + timeout-minutes: 5 + runs-on: ${{ matrix.os }} + + strategy: + fail-fast: false + matrix: + os: + - "ubuntu-latest" + node: + - "16" + - "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: Test Build + run: yarn run build