2023-07-10 05:48:15 +02:00
|
|
|
name: tests
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
jobs:
|
2023-08-31 18:32:57 +02:00
|
|
|
deno:
|
2023-07-10 05:48:15 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2023-08-31 18:32:57 +02:00
|
|
|
- uses: denoland/setup-deno@v1
|
|
|
|
with:
|
|
|
|
deno-version: v1.x
|
2023-07-10 05:48:15 +02:00
|
|
|
- name: Run tests
|
2023-08-31 18:32:57 +02:00
|
|
|
run: deno test tests/main.ts --allow-read
|
2023-07-17 00:18:07 +02:00
|
|
|
- name: Check formatting
|
2023-08-31 18:32:57 +02:00
|
|
|
run: deno fmt tests/ --check
|
2023-07-18 16:26:52 +02:00
|
|
|
nix:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: cachix/install-nix-action@v22
|
|
|
|
- run: nix flake check
|