updater.mod.land #285
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: Check | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v2 | |
- name: Setup latest deno version | |
uses: denolib/setup-deno@v2 | |
with: | |
deno-version: v1.x | |
- name: Check deno fmt | |
run: deno fmt --check mod | |
- name: Check root files | |
run: | | |
deno fmt --check cnames.ts | |
deno fmt --check restricted.ts | |
- name: Check deno lint | |
run: deno lint --unstable mod | |
- name: Lint root files | |
run: | | |
deno fmt --check cnames.ts | |
deno fmt --check restricted.ts | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v2 | |
- name: Setup latest deno version | |
uses: denolib/setup-deno@v2 | |
with: | |
deno-version: v1.x | |
- name: Run integrity check | |
run: deno test --filter "integrity" mod --allow-read | |
- name: Run checks | |
run: deno test --filter "checks" mod --allow-read |