From f28e23b833574835da89a4f6bf18d74bb6b22196 Mon Sep 17 00:00:00 2001 From: Alexis Tyler Date: Sun, 28 Mar 2021 08:27:46 -0700 Subject: [PATCH] chore: add coverage job --- .github/workflows/main.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 106fff4b1..0e4a17bf4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -40,6 +40,38 @@ jobs: - name: Lint run: npm run lint + coverage: + runs-on: ubuntu-latest + + steps: + - name: Checkout repo + uses: actions/checkout@v1 + + - name: Add SSH deploy key + uses: shimataro/ssh-key-action@v2 + with: + key: ${{ secrets.UNRAID_BOT_SSH_KEY }} + known_hosts: ${{ secrets.KNOWN_HOSTS }} + + - name: Install node v14 + uses: actions/setup-node@v1 + with: + node-version: 14 + + - name: Load npm cache + uses: actions/cache@v2 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + + - name: Installing node deps + run: npm install + + - name: Check coverage + run: npm run cover:types + build: runs-on: ubuntu-latest