-
-
Notifications
You must be signed in to change notification settings - Fork 5
54 lines (45 loc) · 1.12 KB
/
bench.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
name: bench
on:
schedule:
- cron: 0 */6 * * *
push:
branches:
- main
jobs:
hello_bench:
name: 'Hello, bench!'
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
packages: write
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
persist-credentials: false
fetch-depth: 0
- uses: denoland/setup-deno@v1
with:
deno-version: vx.x.x
- name: Install Oha
uses: baptiste0928/cargo-install@v1
with:
crate: oha
version: 0.6.0
- name: Init import_map
run: cp import_map.json.prod import_map.json
- name: Generate internal benchmarks
run: deno task bench
- name: Push changes
uses: actions-js/push@v1
with:
github_token: '${{ secrets.GITHUB_TOKEN }}'
branch: main
- name: Run hydrate
run: deno task hydrate
- name: Deploy to Deno Deploy
uses: denoland/deployctl@v1
with:
project: fastro
entrypoint: app/main.ts