Skip to content

Commit

Permalink
chore(ci): split workflows, add nightly test and lint workflow (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
c4spar committed Aug 28, 2020
1 parent e7dd856 commit d13af64
Show file tree
Hide file tree
Showing 3 changed files with 98 additions and 43 deletions.
43 changes: 0 additions & 43 deletions .github/workflows/ci.yml

This file was deleted.

20 changes: 20 additions & 0 deletions .github/workflows/lint.yml
@@ -0,0 +1,20 @@
name: Lint

on: [push, pull_request]

jobs:
build:
name: Lint source
runs-on: ubuntu-latest
steps:
- name: Setup repo
uses: actions/checkout@master

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

- name: Check formatting
run: deno fmt --check

# - name: Run linter
# run: deno lint --unstable
78 changes: 78 additions & 0 deletions .github/workflows/test.yml
@@ -0,0 +1,78 @@
name: ci

on:
push:
pull_request:
schedule:
- cron: 0 0 * * *

jobs:

stable:
name: Deno Stable
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macOS-latest, windows-latest, ubuntu-latest]
deno_version: [ v1.2.0, v1.3.1 ]
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

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 d13af64

Please sign in to comment.