2023-05-16 18:43:04 +00:00
|
|
|
name: Deno app build and testing
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ main ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ main ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
deno:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
timeout-minutes: 5
|
|
|
|
|
|
|
|
steps:
|
2023-05-16 20:23:55 +00:00
|
|
|
- name: Checkout
|
2023-05-16 18:43:04 +00:00
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
2023-05-16 20:23:55 +00:00
|
|
|
- name: Update repository
|
|
|
|
run: apt update
|
2023-05-16 18:43:04 +00:00
|
|
|
|
2023-05-16 20:23:55 +00:00
|
|
|
- name: Install packages
|
2023-05-16 20:25:34 +00:00
|
|
|
run: apt install -y deno
|
2023-05-16 18:43:04 +00:00
|
|
|
|
|
|
|
- name: Run linter
|
|
|
|
run: deno lint
|
|
|
|
|
|
|
|
- name: Run tests
|
|
|
|
run: deno task test
|
2023-05-16 20:23:55 +00:00
|
|
|
|
2023-05-16 18:43:04 +00:00
|
|
|
- name: Run type check
|
|
|
|
run: deno check *.ts && deno check **/*.ts
|