-
-
Notifications
You must be signed in to change notification settings - Fork 5
42 lines (34 loc) · 967 Bytes
/
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
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@v4
- uses: denoland/setup-deno@v2
with:
deno-version: 2.1.2
- name: Run tests
run: GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} deno task test
- name: Generate report
run: deno task coverage
- name: Coveralls
uses: coverallsapp/github-action@v2
with:
path-to-lcov: ./cov.lcov
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run Build
run: GITHUB_CLIENT_ID=${{ vars.GH_CLIENT_ID }} GITHUB_CLIENT_SECRET=${{ secrets.GH_CLIENT_SECRET }} deno task build
- name: Deploy to Deno Deploy
uses: denoland/deployctl@v1
with:
project: fastro
entrypoint: modules/app/main.ts