ci: split deno and nodejs #17
Workflow file for this run
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: Deno | |
on: | |
push: | |
pull_request: | |
schedule: | |
# Check if it works with current deno version | |
- cron: '42 2 * * 6' # weekly on Saturday 2:42 UTC | |
jobs: | |
denofmt-and-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: denoland/setup-deno@v1 | |
with: | |
deno-version: v1.x | |
- uses: actions/checkout@v4 | |
- run: deno lint | |
- run: deno fmt --check | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: denoland/setup-deno@v1 | |
with: | |
deno-version: v1.x | |
- uses: actions/checkout@v4 | |
- run: deno cache source/*.ts | |
- run: deno check source/*.ts | |
- run: deno test |