|
|
@ -1,4 +1,4 @@ |
|
|
name: CI |
|
|
name: Push to Master/Main CI |
|
|
|
|
|
|
|
|
on: |
|
|
on: |
|
|
push: |
|
|
push: |
|
|
@ -22,8 +22,24 @@ jobs: |
|
|
with: |
|
|
with: |
|
|
deno-version: v2.x |
|
|
deno-version: v2.x |
|
|
|
|
|
|
|
|
- name: Install Dependencies |
|
|
- name: Cache Deno dependencies |
|
|
run: deno install |
|
|
uses: actions/cache@v4 |
|
|
|
|
|
with: |
|
|
|
|
|
path: | |
|
|
|
|
|
~/.cache/deno |
|
|
|
|
|
./deno.lock |
|
|
|
|
|
key: ${{ runner.os }}-deno-${{ hashFiles('**/deno.lock') }} |
|
|
|
|
|
restore-keys: | |
|
|
|
|
|
${{ runner.os }}-deno- |
|
|
|
|
|
|
|
|
|
|
|
- name: Cache Dependencies |
|
|
|
|
|
run: deno cache src/index.tsx |
|
|
|
|
|
|
|
|
|
|
|
- name: Run linter |
|
|
|
|
|
run: deno task lint |
|
|
|
|
|
|
|
|
|
|
|
- name: Check formatter |
|
|
|
|
|
run: deno task format --check |
|
|
|
|
|
|
|
|
- name: Run tests |
|
|
- name: Run tests |
|
|
run: deno task test |
|
|
run: deno task test |
|
|
|