Files
discordeno/.github/workflows/test.yml
ITOH c2b7a6ec03 test: remove configs.ts (#1995)
* refactortests): remove config.ts

* Update mod.ts

* Update mod.ts

* .env file
2022-02-04 10:06:55 -05:00

37 lines
1.0 KiB
YAML

name: Test
on:
push:
paths:
- "plugins/**"
- "src/**"
- "tests/**"
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
deno: ["v1.x"]
steps:
- uses: actions/checkout@v2
- run: git submodule update --init --recursive
- uses: denoland/setup-deno@main
with:
deno-version: ${{ matrix.deno }}
- name: Cache dependencies
run: deno cache mod.ts
- name: Run test script for maintainers
if: ${{ github.actor == 'Skillz4Killz' || github.actor == 'itohatweb' }}
run: deno test --unstable --coverage=coverage -A tests/mod.ts
- name: Create coverage report
if: github.ref == 'refs/heads/main'
run: deno coverage --exclude=tests ./coverage --lcov > coverage.lcov
- name: Collect and upload the coverage report
if: github.ref == 'refs/heads/main'
uses: codecov/codecov-action@v1.0.10
with:
file: ./coverage.lcov
env:
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}