From 3c348574505ada1ab2b4dcec4866b6920d21b1bc Mon Sep 17 00:00:00 2001 From: hhimanshu Date: Fri, 9 Apr 2021 08:09:44 -0700 Subject: [PATCH] ci(packaging): run tests before release --- .github/workflows/release.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 85ae474..8f512b0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,8 +4,8 @@ on: branches: - master jobs: - release: - name: Release + setup: + name: Setup Dependencies runs-on: ubuntu-18.04 steps: - name: Checkout @@ -16,6 +16,18 @@ jobs: node-version: 12 - name: Install dependencies run: npx yarn install + test: + name: Run Tests + runs-on: ubuntu-18.04 + needs: setup + steps: + - name: Test + - run: npx yarn test + release: + name: Release + runs-on: ubuntu-18.04 + needs: test + steps: - name: Release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}