mirror of
https://github.com/discordeno/discordeno.git
synced 2026-05-31 16:00:07 +00:00
22 lines
582 B
YAML
22 lines
582 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/main'
|
|
# run: deno test --allow-net --allow-env
|
|
run: deno test --no-check -A $(find -name "*.ts")
|
|
env:
|
|
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
|