CI #1158
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
branches: | |
- master | |
push: | |
branches: | |
- master | |
- release/* | |
schedule: | |
- cron: 0 2 * * 1-5 | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: install deno | |
run: curl -fsSL https://deno.land/x/install/install.sh | sh | |
- name: bundle sources | |
run: ~/.deno/bin/deno bundle test.ts | |
env: | |
RUST_BACKTRACE: 1 | |
- name: run test | |
run: ~/.deno/bin/deno test test.ts | |
env: | |
RUST_BACKTRACE: 1 | |
- name: fetch example app | |
run: ~/.deno/bin/deno bundle example/server.ts | |
env: | |
RUST_BACKTRACE: 1 | |
- name: run example app tests | |
run: cd example/test && ~/.deno/bin/deno test --unstable --allow-net --allow-read server.test.ts | |
env: | |
RUST_BACKTRACE: 1 |