-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (41 loc) · 1.08 KB
/
main-workflow.yml
File metadata and controls
41 lines (41 loc) · 1.08 KB
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: Production Build
on:
push:
branches:
- 'main'
pull_request:
branches:
- 'main'
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
jobs:
coverage:
name: CodeCov coverage reports
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Setup Bun package manager
uses: oven-sh/setup-bun@v2
with:
bun-version-file: ".bun-version"
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Run tests with coverage
run: bun run test:coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ env.CODECOV_TOKEN }}
files: ./coverage/lcov.info
flags: tests
verbose: false
fail_ci_if_error: false
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ env.CODECOV_TOKEN }}
files: junit.xml