-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 894 Bytes
/
ci-pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: CI:PR
on:
pull_request:
branches:
- master
jobs:
basic_specs:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v3
- name: Setup Deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.40.2
- name: Lint
run: deno lint
- name: Check format
run: deno fmt --check
- name: Check types
run: deno check ./main.ts
- name: Testing
run: deno task test
env:
MICRO_CMS_API_KEY: ${{ secrets.MICRO_CMS_API_KEY }}
MICRO_CMS_API_ENDPOINT: ${{ secrets.MICRO_CMS_API_ENDPOINT }}
# - name: Upload to Deno Deploy
# uses: denoland/deployctl@v1
# with:
# project: "mya-ake-portfolio"
# entrypoint: "./main.ts"
# import-map: "./import_map.json"