From b36f2c948eaeaf894be333906261e43dbcfec7fc Mon Sep 17 00:00:00 2001 From: Patrick <50352812+Mueller-Patrick@users.noreply.github.com> Date: Wed, 14 Oct 2020 21:42:24 +0200 Subject: [PATCH] Creating build pipeline --- .github/workflows/master-betterzon.yml | 33 ++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/master-betterzon.yml diff --git a/.github/workflows/master-betterzon.yml b/.github/workflows/master-betterzon.yml new file mode 100644 index 0000000..8b6a3a2 --- /dev/null +++ b/.github/workflows/master-betterzon.yml @@ -0,0 +1,33 @@ + +name: Build +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [12.x] + + steps: + - uses: actions/checkout@v1 + + - name: Cache node modules + uses: actions/cache@v1 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + - name: Node ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + + - name: npm ci and npm run build + run: | + npm ci + npm run build:ci