Skip to content

docs: add fresh-testing-library #81

docs: add fresh-testing-library

docs: add fresh-testing-library #81

Workflow file for this run

name: CI
on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v2
- name: Get deno version
id: deno-version
run: |
echo "version=$(cat .deno-version)" >> ${GITHUB_OUTPUT}
- name: Set up Deno
uses: denoland/setup-deno@main
with:
deno-version: ${{ steps.deno-version.outputs.version }}
- uses: actions/cache@v3
with:
path: |
~/.deno
~/.cache/deno
key: ${{ runner.os }}-deno-${{ hashFiles('**/deno.json', '**/.deno-version') }}
- name: Run linters
run:
deno task check
- name: Build
run: |
deno cache fresh.gen.ts main.ts
deno task build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name == 'push' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build