Files
discordeno/.github/workflows/test.yml
Workflow config file is invalid. Please check your config file: yaml: line 16: could not find expected ':'
Ayyan b164d0bf4f ci: add matrix testing (#471)
* ci: add matrix testing

* idk
2021-01-26 12:03:19 +04:00

23 lines
553 B
YAML

name: Test
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
deno: ["v1.x", "nightly"]
steps:
- uses: actions/checkout@v2
- uses: denolib/setup-deno@v2
with:
deno-version: {{ matrix.deno }}
- name: Cache dependencies
run: |
deno version
deno cache mod.ts
- name: Run test script
if: github.ref == 'refs/heads/master'
run: deno test --allow-net --allow-env
env:
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}