mirror of
https://github.com/discordeno/discordeno.git
synced 2026-05-31 16:00:07 +00:00
21 lines
523 B
YAML
21 lines
523 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 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 }}
|