From 6d7aa35d9c5ddc2682dc6641a4bba8117cb9f228 Mon Sep 17 00:00:00 2001 From: Ayyan Date: Mon, 28 Dec 2020 22:50:16 +0400 Subject: [PATCH] ci: run "Test" workflow on push and pull_request (#294) --- .github/workflows/test.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 159b4f247..748b9e96b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,8 +1,5 @@ name: Test -on: - push: - branches: - - master +on: [push, pull_request] jobs: test: runs-on: ubuntu-latest @@ -12,6 +9,7 @@ jobs: - name: Cache dependencies run: deno cache mod.ts - name: Run test script + if: github.ref == 'refs/heads/master' run: deno test -A env: DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }} \ No newline at end of file