-
-
Notifications
You must be signed in to change notification settings - Fork 5
58 lines (46 loc) · 1.21 KB
/
build.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
name: build
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
packages: write
steps:
- name: Clone repository
uses: actions/checkout@v3
- uses: denoland/setup-deno@v1
with:
deno-version: vx.x.x
- run: deno lint --unstable http
- run: deno lint --unstable examples
- name: Run tests
run: deno task test
- name: Deploy to Deno Deploy
uses: denoland/deployctl@v1
with:
project: fastro
entrypoint: main.ts
- name: Generate report
run: deno coverage cov --lcov > cov.lcov
- name: Coveralls
uses: coverallsapp/github-action@v1
with:
path-to-lcov: ./cov.lcov
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install Oha
uses: baptiste0928/cargo-install@v1
with:
crate: oha
version: 0.6.0
- name: Generate internal benchmarks
run: deno task bench
- name: Push changes
uses: actions-js/push@v1
with:
github_token: '${{ secrets.GITHUB_TOKEN }}'
branch: main