Skip to content

Commit 1a54061

Browse files
authored
Update dependencies and fix linting issues (#68)
* chore(deps): actions bump * chore(cleanup): linting * chore(deps): fixing old deps * tests: fixing tests with ts definition * chore: fixing spell checker
1 parent 8a5b3d0 commit 1a54061

File tree

9 files changed

+240
-417
lines changed

9 files changed

+240
-417
lines changed

.github/workflows/ci.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@ on:
44
pull_request:
55

66
env:
7-
NODE_VERSION: 16.x
7+
NODE_VERSION: 18.x
88

99
jobs:
1010
build:
1111
name: 🛠️ Build
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515
name: Checkout
1616

1717
- name: Setup Node.js ${{ env.NODE_VERSION }}
18-
uses: actions/setup-node@v3
18+
uses: actions/setup-node@v4
1919
with:
2020
node-version: ${{ env.NODE_VERSION }}
2121

@@ -29,11 +29,11 @@ jobs:
2929
name: 🧪 Test
3030
runs-on: ubuntu-latest
3131
steps:
32-
- uses: actions/checkout@v3
32+
- uses: actions/checkout@v4
3333
name: Checkout
3434

3535
- name: Setup Node.js ${{ env.NODE_VERSION }}
36-
uses: actions/setup-node@v3
36+
uses: actions/setup-node@v4
3737
with:
3838
node-version: ${{ env.NODE_VERSION }}
3939

@@ -47,11 +47,11 @@ jobs:
4747
name: 🔗 Lint
4848
runs-on: ubuntu-latest
4949
steps:
50-
- uses: actions/checkout@v3
50+
- uses: actions/checkout@v4
5151
name: Checkout
5252

5353
- name: Setup Node.js ${{ env.NODE_VERSION }}
54-
uses: actions/setup-node@v3
54+
uses: actions/setup-node@v4
5555
with:
5656
node-version: ${{ env.NODE_VERSION }}
5757

.github/workflows/release-pr.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@ on:
66
- main
77

88
env:
9-
NODE_VERSION: 16.x
9+
NODE_VERSION: 18.x
1010

1111
jobs:
1212
build:
1313
name: 🛠️ Build
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1717
name: Checkout
1818

1919
- name: Setup Node.js ${{ env.NODE_VERSION }}
20-
uses: actions/setup-node@v3
20+
uses: actions/setup-node@v4
2121
with:
2222
node-version: ${{ env.NODE_VERSION }}
2323

@@ -31,11 +31,11 @@ jobs:
3131
name: 🧪 Test
3232
runs-on: ubuntu-latest
3333
steps:
34-
- uses: actions/checkout@v3
34+
- uses: actions/checkout@v4
3535
name: Checkout
3636

3737
- name: Setup Node.js ${{ env.NODE_VERSION }}
38-
uses: actions/setup-node@v3
38+
uses: actions/setup-node@v4
3939
with:
4040
node-version: ${{ env.NODE_VERSION }}
4141

@@ -49,11 +49,11 @@ jobs:
4949
name: 🔗 Lint
5050
runs-on: ubuntu-latest
5151
steps:
52-
- uses: actions/checkout@v3
52+
- uses: actions/checkout@v4
5353
name: Checkout
5454

5555
- name: Setup Node.js ${{ env.NODE_VERSION }}
56-
uses: actions/setup-node@v3
56+
uses: actions/setup-node@v4
5757
with:
5858
node-version: ${{ env.NODE_VERSION }}
5959

@@ -72,13 +72,13 @@ jobs:
7272
needs: [build, test, lint]
7373
steps:
7474
- name: Checkout Repo
75-
uses: actions/checkout@v3
75+
uses: actions/checkout@v4
7676
with:
7777
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
7878
fetch-depth: 0
7979

8080
- name: Setup Node.js ${{ env.NODE_VERSION }}
81-
uses: actions/setup-node@v3
81+
uses: actions/setup-node@v4
8282
with:
8383
node-version: ${{ env.NODE_VERSION }}
8484

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ npm install @as-integrations/azure-functions @apollo/server graphql @azure/funct
2323

2424
## **Usage**
2525

26-
2726
1. Setup an [Azure Function with TypeScript](https://learn.microsoft.com/azure/azure-functions/create-first-function-vs-code-typescript) (or [JavaScript](https://learn.microsoft.com/azure/azure-functions/create-first-function-vs-code-node)) as per normal.
2827
2. Create a new [HTTP Trigger](https://learn.microsoft.com/azure/azure-functions/functions-bindings-http-webhook-trigger?tabs=in-process%2Cfunctionsv2&pivots=programming-language-javascript)
2928
3. Update the `index.ts` to use the Apollo integration:
3029

3130
**v3**
31+
3232
```ts
3333
import { ApolloServer } from '@apollo/server';
3434
import { startServerAndCreateHandler } from '@as-integrations/azure-functions';
@@ -57,6 +57,7 @@ export default startServerAndCreateHandler(server);
5757
```
5858

5959
**v4**
60+
6061
```ts
6162
import { ApolloServer } from '@apollo/server';
6263
import { v4 } from '@as-integrations/azure-functions';

cspell-dict.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ traceparent
1111
tracestate
1212
withrequired
1313
aaronpowell
14+
undici

0 commit comments

Comments
 (0)