Skip to main content
Module

x/oak/.github/workflows/oak-ci.yml

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Extremely Popular
Go to Latest
File
name: ci
on: [push, pull_request]
jobs: build: name: tests (${{ matrix.os }}) runs-on: ${{ matrix.os }} strategy: matrix: os: [ubuntu-latest, windows-latest, macOS-latest] fail-fast: true steps: - uses: actions/checkout@v2 - name: download deno uses: denoland/setup-deno@main with: deno-version: 1.11.2
- name: check format if: matrix.os == 'ubuntu-latest' run: deno fmt --check
- name: check linting if: matrix.os == 'ubuntu-latest' run: deno lint --unstable
- name: run tests run: deno test --allow-read --allow-write
- name: run tests unstable run: deno test --coverage=./cov --allow-read --allow-write --allow-net --unstable
- name: run tests using dom libs run: deno test --unstable --allow-read --allow-write --allow-net --config dom.tsconfig.json
- name: generate lcov run: deno coverage --unstable --lcov ./cov > cov.lcov
- name: upload coverage if: matrix.os == 'ubuntu-latest' uses: codecov/codecov-action@v1 with: files: cov.lcov