From 641c169b9d5fb411d251f00298e011b1e226d26e Mon Sep 17 00:00:00 2001 From: Robert Shepherd Date: Fri, 31 Jul 2020 20:54:28 +0800 Subject: [PATCH] Adding github actions CI test --- .github/workflows/main.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..e36b09f --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,27 @@ +name: NPM Test +# This workflow is triggered on pushes to the repository. +on: [push] + +jobs: + build: + # This job runs on Linux + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [10.x, 12.x] + steps: + - uses: actions/checkout@v2 + - name: Build kafka stack + run: ./kafka-setup/start.sh + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm install -g yarn + - name: Install, Test + run: | + yarn install --frozen-lockfile + yarn run test + env: + CI: true \ No newline at end of file