ci: run "Test" workflow on push and pull_request (#294)

This commit is contained in:
Ayyan
2020-12-28 22:50:16 +04:00
committed by GitHub
parent 4e2e139f73
commit 6d7aa35d9c
+2 -4
View File
@@ -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 }}