Skip to content

Commit b76d89d

Browse files
authored
chore(workflows): cleanup workflows (#2641)
1 parent de7f7d7 commit b76d89d

File tree

5 files changed

+164
-276
lines changed

5 files changed

+164
-276
lines changed

.github/workflows/CI.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
paths: ["packages/**"]
7+
pull_request:
8+
types: [opened, synchronize]
9+
paths: ["packages/**"]
10+
# trigger on merge group as well (merge queue)
11+
merge_group:
12+
types: [checks_requested]
13+
branches: ["main"]
14+
workflow_dispatch:
15+
16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.ref }}
18+
cancel-in-progress: true
19+
20+
# To use Remote Caching, uncomment the next lines and follow the steps below.
21+
env:
22+
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
23+
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
24+
TW_SECRET_KEY: ${{ secrets.TW_SECRET_KEY }}
25+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
26+
27+
jobs:
28+
lint:
29+
timeout-minutes: 15
30+
name: Lint Packages
31+
runs-on: ubuntu-latest
32+
steps:
33+
- name: Check out the code
34+
uses: actions/checkout@v4
35+
36+
- name: Setup & Install
37+
uses: ./.github/composite-actions/install
38+
39+
- run: pnpm lint
40+
41+
test:
42+
timeout-minutes: 15
43+
name: Unit Tests
44+
runs-on: ubuntu-latest-16
45+
steps:
46+
- name: Check out the code
47+
uses: actions/checkout@v4
48+
49+
- name: Setup & Install
50+
uses: ./.github/composite-actions/install
51+
52+
- name: Set up foundry
53+
uses: foundry-rs/foundry-toolchain@v1
54+
55+
- run: pnpm test
56+
57+
- name: Upload coverage reports to Codecov
58+
uses: codecov/codecov-action@v4
59+
with:
60+
directory: ./packages
61+
62+
benchmark:
63+
timeout-minutes: 15
64+
name: "Benchmarks"
65+
runs-on: ubuntu-latest-16
66+
steps:
67+
- name: Check out the code
68+
uses: actions/checkout@v4
69+
70+
- name: Setup & Install
71+
uses: ./.github/composite-actions/install
72+
73+
- name: Run benchmarks
74+
uses: CodSpeedHQ/action@v2
75+
with:
76+
token: ${{ secrets.CODSPEED_TOKEN }}
77+
run: "pnpm bench"

.github/workflows/CI_legacy.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: CI (Legacy Packages)
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
paths: ["legacy_packages/**", "legacy_e2e/**"]
7+
pull_request:
8+
types: [opened, synchronize]
9+
paths: ["legacy_packages/**", "legacy_e2e/**"]
10+
# trigger on merge group as well (merge queue)
11+
merge_group:
12+
types: [checks_requested]
13+
branches: ["main"]
14+
workflow_dispatch:
15+
16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.ref }}
18+
cancel-in-progress: true
19+
20+
# To use Remote Caching, uncomment the next lines and follow the steps below.
21+
env:
22+
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
23+
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
24+
TW_SECRET_KEY: ${{ secrets.TW_SECRET_KEY }}
25+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
26+
27+
jobs:
28+
lint:
29+
timeout-minutes: 15
30+
name: Lint Packages (Legacy Packages)
31+
runs-on: ubuntu-latest
32+
steps:
33+
- name: Check out the code
34+
uses: actions/checkout@v4
35+
36+
- name: Setup & Install
37+
uses: ./.github/composite-actions/install
38+
39+
- run: pnpm lint:legacy
40+
41+
test:
42+
timeout-minutes: 15
43+
name: Unit Tests (Legacy Packages)
44+
runs-on: ubuntu-latest-16
45+
steps:
46+
- name: Check out the code
47+
uses: actions/checkout@v4
48+
49+
- name: Setup & Install
50+
uses: ./.github/composite-actions/install
51+
52+
- run: pnpm test:legacy
53+
54+
- name: Upload coverage reports to Codecov
55+
uses: codecov/codecov-action@v4
56+
with:
57+
directory: ./legacy_packages
58+
59+
e2e:
60+
timeout-minutes: 15
61+
name: E2E Tests (Legacy Packages)
62+
runs-on: ubuntu-latest-16
63+
steps:
64+
- name: Check out the code
65+
uses: actions/checkout@v4
66+
67+
- name: Setup & Install
68+
uses: ./.github/composite-actions/install
69+
70+
- name: Install Playwright
71+
run: npx playwright install --with-deps
72+
73+
- name: Run e2e tests
74+
run: pnpm e2e:legacy
75+
env:
76+
NODE_OPTIONS: "--max_old_space_size=4096"
77+
CLI_E2E_API_KEY: ${{ secrets.CLI_E2E_API_KEY }}

.github/workflows/build-test-lint.yml

Lines changed: 0 additions & 232 deletions
This file was deleted.

0 commit comments

Comments
 (0)