File tree Expand file tree Collapse file tree 4 files changed +36
-18
lines changed
Expand file tree Collapse file tree 4 files changed +36
-18
lines changed Original file line number Diff line number Diff line change 88
99 steps :
1010 - name : Checkout repo
11- uses : actions/checkout@v3
11+ uses : actions/checkout@v6
1212
1313 - name : Set up node
14- uses : actions/setup-node@v4
14+ uses : actions/setup-node@v6
15+
16+ - name : Install pnpm
17+ uses : pnpm/action-setup@v4
18+
19+ - name : Install dependencies
20+ run : pnpm install --frozen-lockfile
1521
1622 - name : Compile
17- run : yarn && yarn build
23+ run : pnpm build
1824
1925 test :
2026 runs-on : ubuntu-latest
2127
2228 steps :
2329 - name : Checkout repo
24- uses : actions/checkout@v3
30+ uses : actions/checkout@v6
2531
2632 - name : Set up node
27- uses : actions/setup-node@v4
33+ uses : actions/setup-node@v6
34+
35+ - name : Install pnpm
36+ uses : pnpm/action-setup@v4
2837
29- - name : Compile
30- run : yarn
38+ - name : Install dependencies
39+ run : pnpm install --frozen-lockfile
3140
3241 - name : Test
33- run : yarn test
42+ run : pnpm test
3443 env :
3544 INTERCOM_API_KEY : ${{ secrets.INTERCOM_API_KEY }}
3645
@@ -42,13 +51,15 @@ jobs:
4251 id-token : write
4352 steps :
4453 - name : Checkout repo
45- uses : actions/checkout@v3
54+ uses : actions/checkout@v6
4655 - name : Set up node
47- uses : actions/setup-node@v4
56+ uses : actions/setup-node@v6
57+ - name : Install pnpm
58+ uses : pnpm/action-setup@v4
4859 - name : Install dependencies
49- run : yarn install
60+ run : pnpm install
5061 - name : Build
51- run : yarn build
62+ run : pnpm build
5263
5364 - name : Publish to npm
5465 run : |
Original file line number Diff line number Diff line change @@ -168,11 +168,12 @@ describe("Conversations", () => {
168168 } ) ;
169169
170170 it ( "run assignment rules" , async ( ) => {
171+ const legacyClient = createClient ( { version : "2.11" } ) ;
171172 // arrange
172- const message = await createConversation ( client , user . id ) ;
173+ const message = await createConversation ( legacyClient , user . id ) ;
173174
174175 // act
175- const response = await client . conversations . runAssignmentRules ( {
176+ const response = await legacyClient . conversations . runAssignmentRules ( {
176177 conversation_id : message . conversation_id ,
177178 } ) ;
178179
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ describe("Data Attributes", () => {
1313 randomDataAttribute = attributes . data . find ( ( attribute ) => attribute . id !== undefined ) ;
1414 } ) ;
1515
16- xit ( "create" , async ( ) => {
16+ it . skip ( "create" , async ( ) => {
1717 //act
1818
1919 // The workspace we test on has hit the CDA limit, so we can't create any more
Original file line number Diff line number Diff line change 1- import { IntercomClient } from "../../../src" ;
1+ import { type Intercom , IntercomClient } from "../../../src" ;
22
3- export function createClient ( ) : IntercomClient {
4- return new IntercomClient ( { token : process . env . API_TOKEN as string } ) ;
3+ type IntercomVersion = Intercom . IntercomVersion ;
4+
5+ export function createClient ( options ?: { version ?: IntercomVersion } ) : IntercomClient {
6+ const { version } = options || { } ;
7+ return new IntercomClient ( {
8+ token : process . env . API_TOKEN as string ,
9+ version,
10+ } ) ;
511}
You can’t perform that action at this time.
0 commit comments