-
-
Notifications
You must be signed in to change notification settings - Fork 0
99 lines (84 loc) · 2.24 KB
/
ci.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
name: Web App
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
install:
name: Install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/[email protected]
with:
bun-version: latest
- name: Install Packages
run: bun install --frozen-lockfile
# lint:
# name: Lint
# runs-on: ubuntu-latest
# needs: [install]
# steps:
# - uses: actions/checkout@v4
# - uses: oven-sh/[email protected]
# with:
# bun-version: latest
# - name: Install Packages
# run: bun install --frozen-lockfile
# - name: Lint
# run: bun lint
# test:
# name: Test
# runs-on: ubuntu-latest
# needs: [install]
# steps:
# - uses: actions/checkout@v4
# - uses: oven-sh/[email protected]
# with:
# bun-version: latest
# - name: Install Packages
# run: bun install --frozen-lockfile
# - name: Coverage
# run: bun test --coverage
# # TODO: Enable once LCOV is supported
# # https://github.com/oven-sh/bun/issues/4015
# # - name: Coveralls
# # uses: coverallsapp/github-action@master
# # with:
# # github-token: ${{ secrets.GITHUB_TOKEN }}
build:
name: Build
runs-on: ubuntu-latest
needs: [install]
steps:
- uses: actions/checkout@v4
- uses: oven-sh/[email protected]
with:
bun-version: latest
- name: Install Packages
run: bun install --frozen-lockfile
- name: Build
run: bun run build
- name: Upload Pages artifact
uses: actions/[email protected]
with:
path: dist
release:
name: Release
runs-on: ubuntu-latest
needs: [build]
# needs: [lint, test, build]
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/[email protected]