From 7ea504ba37cd34cebfc47f381fd425f72f17011b Mon Sep 17 00:00:00 2001 From: raghaves Date: Tue, 16 Jun 2020 10:23:23 +0530 Subject: [PATCH] Review fix --- .github/workflows/test.yml | 4 +++- __tests__/run.test.ts | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e125e0d..9e21e0e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,6 +18,7 @@ jobs: uses: actions/checkout@v1 - name: 'Validate build' + if: ${{ ${GITHUB_REF##*/} == 'master' }} run: | npm install npm build @@ -65,4 +66,5 @@ jobs: $headers = @{ "Authorization" = "token ${env:GITHUB_TOKEN}" } - Invoke-RestMethod -Method POST -Uri $url -Headers $headers -Body "{ `"body`": `"${comment}`" }" \ No newline at end of file + $body = "{ `"body`": `"${comment}`" }" + Invoke-RestMethod -Method POST -Uri $url -Headers $headers -Body $body \ No newline at end of file diff --git a/__tests__/run.test.ts b/__tests__/run.test.ts index 6e7ddce..4db99d1 100644 --- a/__tests__/run.test.ts +++ b/__tests__/run.test.ts @@ -1,4 +1,4 @@ -import {run} from '../src/login' +import { run } from '../src/login' describe('This is a placeholder for intial test cases, to be removed', () => { test('Dummy test case', async () => {