mirror of
https://github.com/discordeno/discordeno.git
synced 2026-05-31 07:50:07 +00:00
43
.github/workflows/test.yml
vendored
43
.github/workflows/test.yml
vendored
@@ -18,42 +18,15 @@ jobs:
|
||||
run: deno cache --no-check mod.ts
|
||||
- name: Run test script for maintainers
|
||||
if: ${{ github.actor == 'ayntee' || github.actor == 'Skillz4Killz' || github.actor == 'itohatweb' }}
|
||||
run: deno test -A --no-check tests/mod.ts
|
||||
run: deno test --unstable --coverage=coverage -A --no-check tests/mod.ts
|
||||
- name: Run test script if label added
|
||||
if: ${{ github.event_name == 'pull_request' && github.event.action == 'labeled' && github.event.label.name == 'run-tests' }}
|
||||
run: DISCORD_TOKEN=${{ secrets.DISCORD_TOKEN }} deno test --allow-net --no-check tests/mod.ts
|
||||
run: DISCORD_TOKEN=${{ secrets.DISCORD_TOKEN }} deno test --unstable --coverage=coverage --allow-net --no-check tests/mod.ts
|
||||
- name: Create coverage report
|
||||
run: deno --unstable coverage ./coverage --lcov > coverage.lcov
|
||||
- name: Collect and upload the coverage report
|
||||
uses: codecov/codecov-action@v1.0.10
|
||||
with:
|
||||
file: ./coverage.lcov
|
||||
env:
|
||||
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
|
||||
|
||||
# name: Test
|
||||
# on:
|
||||
# push:
|
||||
# pull_request:
|
||||
# types: [labeled]
|
||||
# jobs:
|
||||
# test:
|
||||
# runs-on: ubuntu-latest
|
||||
# strategy:
|
||||
# matrix:
|
||||
# deno: ["v1.x"]
|
||||
# steps:
|
||||
# - uses: actions/checkout@v2
|
||||
# - uses: denoland/setup-deno@main
|
||||
# with:
|
||||
# deno-version: ${{ matrix.deno }}
|
||||
# - name: Cache dependencies
|
||||
# run: deno cache --no-check mod.ts
|
||||
# - name: Run test script for maintainers
|
||||
# if: ${{ github.actor == 'ayntee' || github.actor == 'Skillz4Killz' || github.actor == 'itohatweb' }}
|
||||
# run: deno test --unstable --coverage=coverage -A --no-check tests/mod.ts
|
||||
# - name: Run test script if label added
|
||||
# if: ${{ github.event_name == 'pull_request' && github.event.action == 'labeled' && github.event.label.name == 'run-tests' }}
|
||||
# run: DISCORD_TOKEN=${{ secrets.DISCORD_TOKEN }} deno test --unstable --coverage=coverage --allow-net --no-check tests/mod.ts
|
||||
# - name: Create coverage report
|
||||
# run: deno --unstable coverage ./coverage --lcov > coverage.lcov
|
||||
# - name: Collect and upload the coverage report
|
||||
# uses: codecov/codecov-action@v1.0.10
|
||||
# with:
|
||||
# file: ./coverage.lcov
|
||||
# env:
|
||||
# DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user