Files
discordeno/.github/workflows/test.yml
Ayyan 9ca916d263 ci(test): run workflow on label assignment (#365)
* ci(test): run workflow on label assignment

* ci(test): remove paths
2021-01-10 22:22:46 +04:00

16 lines
409 B
YAML

name: Test
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: denolib/setup-deno@v2
- name: Cache dependencies
run: deno cache mod.ts
- name: Run test script
if: github.event.label.name == 'run-tests'
run: deno test --allow-net --allow-env
env:
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}