mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-01 16:30:08 +00:00
27 lines
774 B
YAML
27 lines
774 B
YAML
name: CI
|
|
|
|
# Controls when the action will run. Triggers the workflow on push or pull request
|
|
# events but only for the master branch
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
branches: [master]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: denolib/setup-deno@v2
|
|
with:
|
|
deno-version: v1.8
|
|
- name: Create coverage files
|
|
run: deno test --unstable --coverage=coverage # create coverage files
|
|
- name: Create coverage report
|
|
run: deno --unstable coverage ./coverage --lcov > coverage.lcov # create coverage report
|
|
- name: Collect coverage
|
|
uses: codecov/codecov-action@v1.0.10 # upload the report on Codecov
|
|
with:
|
|
file: ./coverage.lcov
|