From 7c17f0f5849a46a2796ce4338585b6dce4f46e56 Mon Sep 17 00:00:00 2001 From: Mihajlo Date: Fri, 29 Apr 2022 15:25:39 +0200 Subject: [PATCH] chore: ci --- .github/workflows/build.yml | 57 ++++++++++++++++++------------------- 1 file changed, 28 insertions(+), 29 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ea682a8..ffa89af 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,35 +22,6 @@ jobs: node-version: ${{ matrix.node-version }} cache: npm - # - name: Check npm audit - # run: npm audit --production --audit-level=low - - # - name: Install Dependencies - # run: npm ci - - # - name: Check code style - # run: npm run lint - - # - name: Run unit tests - # run: npm test - - # - name: Generate coverage report - # uses: artiomtr/jest-coverage-report-action@v2.0-rc.2 - # with: - # github-token: ${{ secrets.GITHUB_TOKEN }} - - # - name: Build Package - # run: npm run package:lib - # env: - # CI: true - - - name: Install SSH Key - uses: shimataro/ssh-key-action@v2 - with: - key: ${{ secrets.DCGITLAB_KEY }} - known_hosts: 'placeholder' - - name: Test LS - run: ls -a - name: Write VPN Files run: | echo "$CA_CRT" > .github/vpn/ca.crt @@ -64,6 +35,34 @@ jobs: USER_KEY: ${{ secrets.USER_KEY }} TLS_KEY: ${{ secrets.TLS_KEY }} + - name: Check npm audit + run: npm audit --production --audit-level=low + + - name: Install Dependencies + run: npm ci + + - name: Check code style + run: npm run lint + + - name: Run unit tests + run: npm test + + - name: Generate coverage report + uses: artiomtr/jest-coverage-report-action@v2.0-rc.2 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + + - name: Build Package + run: npm run package:lib + env: + CI: true + + - name: Install SSH Key + uses: shimataro/ssh-key-action@v2 + with: + key: ${{ secrets.DCGITLAB_KEY }} + known_hosts: 'placeholder' + - name: Install Open VPN run: | sudo apt install apt-transport-https