Skip to content

feat: introduce Notebook infrastructure #435

feat: introduce Notebook infrastructure

feat: introduce Notebook infrastructure #435

Workflow file for this run

name: assurance
on:
push:
branches:
- main
- master
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@master
# see https://github.com/denoland/setup-deno
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- run: deno --version
# syntax check all files in case tests don't exist
- run: deno check --no-lock --unstable $(find . -name '*.ts' -not -path './support/*')
# Run all test files in the repository and collect code coverage.
# The example runs with all permissions, but it is recommended to run
# with the minimal permissions your program needs (for example --allow-read).
- run: deno test --allow-all --unstable --coverage=coverage --v8-flags="--max-old-space-size=4096"
# This generates a report from the collected coverage in `deno test --coverage`.
# It is stored as a .lcov file which integrates well with services such
# as Codecov, Coveralls and Travis CI.
- run: deno --unstable coverage ./coverage --lcov > coverage.lcov
- name: Collect coverage
uses: codecov/codecov-action@v3 # upload the report on Codecov
with:
file: ./coverage.lcov
# Check if the code is formatted according to Deno's default formatting conventions.
- run: deno fmt --check --ignore="support"
# Scan the code for syntax errors and style issues.
- run: deno lint --ignore="support"