addressed some items on scoring page for jsr #1
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Deno | |
uses: denoland/setup-deno@v1 | |
with: | |
deno-version: v1.x | |
- name: Cache Deno modules | |
uses: actions/cache@v2 | |
with: | |
path: ~/.cache/deno | |
key: ${{ runner.os }}-deno-${{ hashFiles('**/import_map.json') }} | |
restore-keys: | | |
${{ runner.os }}-deno- | |
- name: Install dependencies | |
run: deno cache index.ts | |
- name: Run tests | |
run: deno test | |
- name: Publish to Deno | |
if: github.ref == 'refs/heads/main' | |
run: deno publish | |
env: | |
DENO_AUTH_TOKEN: ${{ secrets.DENO_AUTH_TOKEN }} |