Skip to content

Commit

Permalink
Add basic CI
Browse files Browse the repository at this point in the history
  • Loading branch information
danopia committed Nov 27, 2021
1 parent d70209f commit 9f21cad
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/deno-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI

on:
push:
branches: [ main ]
pull_request: {}

jobs:

check:
runs-on: ubuntu-latest
name: Check w/ ${{ matrix.deno-version }}
strategy:
matrix:
deno-version:
- v1.16
- canary
fail-fast: false # run each branch to completion

steps:
- name: Checkout source
uses: actions/checkout@v2

- name: Use Deno ${{ matrix.deno-version }}
uses: denoland/setup-deno@v1
with:
deno-version: ${{ matrix.deno-version }}

- name: Check mod.ts
run: time deno cache mod.ts

- name: Check examples
run: time deno cache examples/**/*.ts

- name: Run dialer examples
run: |
time ./examples/dialer/https_cloudflare-dns.ts
time ./examples/dialer/https_google-dns.ts
- name: Run fetch examples
run: |
time ./examples/fetch/http_dagd.ts
time ./examples/fetch/https_dagd.ts
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
![Deno CI](https://github.com/cloudydeno/deno-socket_fetch/workflows/CI/badge.svg?branch=main)

# `/x/socket_fetch`

## What?
Expand Down

0 comments on commit 9f21cad

Please sign in to comment.