-
Notifications
You must be signed in to change notification settings - Fork 114
121 lines (101 loc) · 3.17 KB
/
integration.yml
File metadata and controls
121 lines (101 loc) · 3.17 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
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# yaml-language-server: $schema=https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/github-workflow.json
on:
pull_request:
name: Integration
env:
GITHUB_TOKEN: ${{ github.token }}
jobs:
test:
name: Check whether the written test passes normally
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: 1.3.1
- name: Install dependencies with Bun
run: |
bun install --frozen-lockfile
shell: bash
- uses: actions/cache/restore@v4
with:
path: |
**/dist/
**/build/
**/.next/
**/.ultra.cache.json
key: ${{ runner.os }}-ultra-v1-${{ github.head_ref || github.ref_name }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-ultra-v1-${{ github.head_ref || github.ref_name }}-
${{ runner.os }}-ultra-v1-main-
- name: Check whether all tests written in the monorepo pass normally
run: |
bun run test
shell: bash
type-check:
name: Check the TypeScript typings
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: 1.3.1
- uses: actions/cache@v4
id: bun-cache
with:
path: |
~/.bun/install/cache/
key: ${{ runner.os }}-bun-v1-${{ hashFiles('**/bun.lock') }}
restore-keys: |
${{ runner.os }}-bun-v1-
- name: Install dependencies with Bun
run: |
bun install --frozen-lockfile
shell: bash
- uses: actions/cache/restore@v4
with:
path: |
**/dist/
**/build/
**/.next/
**/.ultra.cache.json
key: ${{ runner.os }}-ultra-v1-${{ github.head_ref || github.ref_name }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-ultra-v1-${{ github.head_ref || github.ref_name }}-
${{ runner.os }}-ultra-v1-main-
- name: Build all .d.ts of packages
run: |
bun run build:dts
shell: bash
- name: Check the TypeScript typings of the entire monorepo
run: |
bun run typecheck
shell: bash
changeset:
name: Check the status of Changesets
runs-on: ubuntu-latest
if: github.head_ref != 'changeset-release/main'
steps:
- uses: actions/checkout@v4
with:
# https://github.com/changesets/changesets/issues/1055#issuecomment-1602572294
fetch-depth: 0
- uses: oven-sh/setup-bun@v2
with:
bun-version: 1.3.1
- uses: actions/cache@v4
id: bun-cache
with:
path: |
~/.bun/install/cache/
key: ${{ runner.os }}-bun-v1-${{ hashFiles('**/bun.lock') }}
restore-keys: |
${{ runner.os }}-bun-v1-
- name: Install dependencies with Bun
run: |
bun install --frozen-lockfile
shell: bash
- name: Check the status of Changesets
run: |
bun run changeset status --since=origin/main
shell: bash