Skip to content

Static buckets

Static buckets #193

Workflow file for this run

name: Pull requests
on:
pull_request:
branches:
- main
env:
DENO_DIR: deno_cache
jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Deno
uses: denoland/setup-deno@v1
with:
deno-version: 1.38.1
- name: Cache Deno dependencies
uses: actions/cache@v3
with:
path: ${{ env.DENO_DIR }}
key: ${{ hashFiles('deno.lock') }}
- name: Deno Cache
run: deno task cache
- name: Check formatting
run: deno fmt --check
- name: Check linting
run: deno lint
- name: Run type checks
run: deno task typecheck
- name: Run unit tests
run: deno task test
- name: Generate coverage report
run: deno coverage ./coverage --lcov > coverage.lcov
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
file: ./coverage.lcov
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true