Skip to content

Add validation with valita #33

Add validation with valita

Add validation with valita #33

Workflow file for this run

name: ci
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
IS_PRODUCTION: false
jobs:
test:
name: test-${{ matrix.deno }}-${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
deno: [old, stable, canary]
os: [macOS-latest, windows-latest, ubuntu-latest]
steps:
- name: Setup repo
uses: actions/checkout@v2
- name: Setup Deno
run: |
curl -fsSL https://deno.land/x/install/install.sh | sh ${{ matrix.deno == 'old' && '-s v1.36.3' || '' }}
echo "$HOME/.deno/bin" >> $${{ runner.os == 'Windows' && 'env:' || '' }}GITHUB_PATH
- name: Upgrade to Deno canary
if: matrix.deno == 'canary'
run: deno upgrade --canary
- name: Format
if: runner.os == 'Linux'
run: deno fmt --check
- name: Lint
if: runner.os == 'Linux'
run: deno lint
- name: Run Tests
run: deno test --unstable -A