Skip to content

Commit

Permalink
chore(ci): add separate workflows for test and nightly-test
Browse files Browse the repository at this point in the history
  • Loading branch information
c4spar committed Sep 20, 2020
1 parent 5dbe353 commit d8ecece
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 36 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/test-nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Nightly Test

on:
schedule:
- cron: 0 0 * * *

jobs:

nightly:
name: Deno Nightly
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macOS-latest, windows-latest, ubuntu-latest]
deno_version: [ nightly ]
steps:
- name: Setup repo
uses: actions/checkout@v2

- name: Setup Deno
uses: denolib/setup-deno@v2
with:
deno-version: ${{ matrix.deno_version }}

- name: Run command tests
run: >
deno test command/test/command --allow-env --unstable &&
deno test command/test/option &&
deno test command/test/type
- name: Run flags tests
run: deno test flags

- name: Run keycode tests
run: deno test keycode

- name: Run prompt tests
run: deno test prompt --unstable

- name: Run table tests
run: deno test table
36 changes: 0 additions & 36 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: Test
on:
push:
pull_request:
schedule:
- cron: 0 0 * * *

jobs:

Expand Down Expand Up @@ -42,37 +40,3 @@ jobs:

- name: Run table tests
run: deno test table

nightly:
name: Deno Nightly
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macOS-latest, windows-latest, ubuntu-latest]
steps:
- name: Setup repo
uses: actions/checkout@v2

- name: Setup Deno
uses: denolib/setup-deno@master
with:
deno-version: nightly

- name: Run command tests
run: >
deno test command/test/command --allow-env --unstable &&
deno test command/test/option &&
deno test command/test/type
- name: Run flags tests
run: deno test flags

- name: Run keycode tests
run: deno test keycode

- name: Run prompt tests
run: deno test prompt --unstable

- name: Run table tests
run: deno test table

0 comments on commit d8ecece

Please sign in to comment.