Skip to content

test

test #181

Workflow file for this run

name: test
env:
DENOPS_PATH: "../denops.vim"
DENO_DIR: ".deno"
on:
schedule:
- cron: "0 7 * * 0"
push:
branches:
- main
paths:
- "**/*.md"
- "**/*.ts"
- "**/*.vim"
- ".github/workflows/test.yml"
- "Makefile"
pull_request:
paths:
- "**/*.md"
- "**/*.ts"
- "**/*.vim"
- ".github/workflows/test.yml"
- "Makefile"
defaults:
run:
shell: bash --noprofile --norc -eo pipefail {0}
jobs:
check:
strategy:
matrix:
runner:
- ubuntu-latest
version:
- "1.17.1"
- "1.x"
runs-on: ${{ matrix.runner }}
steps:
- run: git config --global core.autocrlf false
if: runner.os == 'Windows'
- uses: actions/checkout@v2
- uses: denoland/setup-deno@v1
with:
deno-version: "${{ matrix.version }}"
- uses: actions/cache@v2
with:
path: ${{ env.DENO_DIR }}
key: ${{ runner.os }}-deno-${{ matrix.version }}-${{ hashFiles('**/*.ts') }}
restore-keys: |
${{ runner.os }}-deno-${{ matrix.version }}-
${{ runner.os }}-deno-
- name: Lint check
run: make lint
- name: Format check
run: make fmt-check
- name: Type check
run: make type-check