-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (41 loc) · 912 Bytes
/
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
name: CI
'on':
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
jobs:
build-and-test:
name: Build And Test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
job:
- build
- lint
steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install dependencies
run: bun install
- name: Linting
if: matrix.job == 'lint'
run: bun run lint
- name: Run build job
if: matrix.job == 'build'
run: |
cd apps/extension
bun run build
- name: Upload Artifact
if: matrix.job == 'build' && success()
uses: actions/upload-artifact@v3
with:
name: ai-prompt-snippets
path: apps/extension/dist