-
Notifications
You must be signed in to change notification settings - Fork 6
69 lines (53 loc) · 1.54 KB
/
deno.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will install Deno then run `deno lint` and `deno test`.
# For more information see: https://github.com/denoland/setup-deno
name: Deno
on:
push:
branches: ["main"]
pull_request:
branches: ["*"]
env:
TEST_NOTIFICATION_PUBKEY: ${{ vars.TEST_NOTIFICATION_PUBKEY }}
permissions:
contents: read
jobs:
test:
timeout-minutes: 3
runs-on: ubuntu-latest
strategy:
matrix:
deno-version: [1.41.0]
steps:
- name: Setup repo
uses: actions/checkout@v3
- name: Setup Deno
uses: denoland/setup-deno@v1
- name: Verify formatting
run: make fmt-check
- name: Run tests
run: make test
- name: UI test
run: make compile-all-ui-tests-ci
deploy:
timeout-minutes: 1
runs-on: ubuntu-latest
permissions:
id-token: write # Needed for auth with Deno Deploy
contents: read # Needed to clone the repository
steps:
- name: Clone repository
uses: actions/checkout@v3
- name: Setup Deno
uses: denoland/setup-deno@v1
- name: Bundle
run: make build-ci
- name: Upload to Deno Deploy
uses: denoland/deployctl@v1
with:
project: "blowater"
entrypoint: https://raw.githubusercontent.com/denoland/deno_std/0.202.0/http/file_server.ts
root: build-pwa