Skip to content

Commit 7ee1ce0

Browse files
committed
Improve global aggregates, fix tests and update CI workflow
1 parent d1adb7d commit 7ee1ce0

5 files changed

Lines changed: 839 additions & 28 deletions

File tree

.changeset/lucky-plants-lay.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@ohcnetwork/leaderboard-github-plugin": patch
3+
---
4+
5+
Add more PR Avg. Turn Around Time datapoints and follow new standards for gloabl aggregates
Lines changed: 42 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,51 @@
1-
name: Release
1+
name: CI
22

33
on:
44
push:
55
branches:
66
- main
7+
pull_request:
8+
branches:
9+
- main
710

811
concurrency: ${{ github.workflow }}-${{ github.ref }}
912

1013
jobs:
14+
build-and-test:
15+
name: Build & Test
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout Repo
19+
uses: actions/checkout@v6
20+
21+
- name: Setup pnpm
22+
uses: pnpm/action-setup@v4
23+
24+
- name: Setup Node.js
25+
uses: actions/setup-node@v6
26+
with:
27+
node-version: 22
28+
cache: "pnpm"
29+
30+
- name: Install Dependencies
31+
run: pnpm install --frozen-lockfile
32+
33+
- name: Build Package
34+
run: pnpm build
35+
36+
- name: Run Tests
37+
run: pnpm test
38+
39+
- name: Upload Build Artifacts
40+
uses: actions/upload-artifact@v4
41+
with:
42+
name: dist
43+
path: dist/
44+
1145
release:
1246
name: Release
47+
needs: build-and-test
48+
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
1349
runs-on: ubuntu-latest
1450
permissions:
1551
contents: write
@@ -31,8 +67,11 @@ jobs:
3167
- name: Install Dependencies
3268
run: pnpm install --frozen-lockfile
3369

34-
- name: Build Package
35-
run: pnpm build
70+
- name: Download Build Artifacts
71+
uses: actions/download-artifact@v4
72+
with:
73+
name: dist
74+
path: dist/
3675

3776
- name: Create Release Pull Request or Publish to GitHub Packages
3877
id: changesets
@@ -42,5 +81,3 @@ jobs:
4281
publish: pnpm changeset publish
4382
commit: "chore: version packages"
4483
title: "chore: version packages"
45-
env:
46-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)