Skip to content

Commit 4540ced

Browse files
authored
Add Azure-managed Durable Task support as separate npm package (#73)
1 parent bcac4ed commit 4540ced

File tree

95 files changed

+45751
-24404
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+45751
-24404
lines changed

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"amd": true,
99
"node": true
1010
},
11-
"ignorePatterns": ["src/version.ts", "jest.config.js"],
11+
"ignorePatterns": ["src/version.ts", "jest.config.js", "dist"],
1212
"rules": {
1313
"@typescript-eslint/ban-ts-comment": "off",
1414
"@typescript-eslint/no-explicit-any": "off",
Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@ jobs:
1818

1919
analyze:
2020
name: Analyze
21-
runs-on: windows-latest
21+
runs-on: ubuntu-latest
2222
permissions:
2323
actions: read
2424
contents: read
2525
security-events: write
26-
26+
defaults:
27+
run:
28+
shell: bash
2729

2830
strategy:
2931
fail-fast: false
@@ -33,6 +35,10 @@ jobs:
3335
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
3436

3537
steps:
38+
# Checkout must be first
39+
- name: Checkout repository
40+
uses: actions/checkout@v4
41+
3642
# Initializes the CodeQL tools for scanning.
3743
- name: Initialize CodeQL
3844
uses: github/codeql-action/init@v3
@@ -41,19 +47,20 @@ jobs:
4147
# If you wish to specify custom queries, you can do so here or in a config file.
4248
# By default, queries listed here will override any specified in a config file.
4349
# Prefix the list here with "+" to use these queries and those in the config file.
50+
4451

4552
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
4653
# queries: security-extended,security-and-quality
4754

48-
- uses: actions/checkout@v3
49-
5055
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
5156
# If this step fails, then you should remove it and run the build manually (see below)
5257
- name: Autobuild
53-
uses: github/codeql-action/autobuild@v2
58+
uses: github/codeql-action/autobuild@v3
5459

5560
# Run CodeQL analysis
5661
- name: Perform CodeQL Analysis
5762
uses: github/codeql-action/analyze@v3
5863
with:
59-
category: "/language:${{matrix.language}}"
64+
category: "/language:${{matrix.language}}"
65+
66+
category: "/language:${{matrix.language}}"
Lines changed: 48 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,48 @@
1-
name: 🚀 Test and Build
2-
3-
on:
4-
push:
5-
branches:
6-
- main
7-
pull_request:
8-
branches:
9-
- main
10-
11-
jobs:
12-
build:
13-
runs-on: ubuntu-latest
14-
15-
env:
16-
NODE_VER: 16.14.0
17-
18-
services:
19-
# docker run --name durabletask-sidecar -p 4001:4001 --env 'DURABLETASK_SIDECAR_LOGLEVEL=Debug' --rm cgillum/durabletask-sidecar:latest start --backend Emulator
20-
durabletask-sidecar:
21-
image: cgillum/durabletask-sidecar:latest
22-
ports:
23-
- 4001:4001
24-
env:
25-
DURABLETASK_SIDECAR_LOGLEVEL: Debug
26-
DURABLETASK_STORAGE_PROVIDER: Emulator
27-
28-
steps:
29-
- name: 📥 Checkout code
30-
uses: actions/checkout@v2
31-
32-
- name: ⚙️ NodeJS - Install
33-
uses: actions/setup-node@v2
34-
with:
35-
node-version: ${{ env.NODE_VER }}
36-
registry-url: "https://registry.npmjs.org"
37-
38-
- name: ⚙️ Install dependencies
39-
run: npm install
40-
41-
- name: ✅ Run unit tests
42-
run: npm test test/unit
43-
44-
- name: ✅ Run e2e tests
45-
run: ./scripts/test-e2e.sh
1+
name: 🚀 Test and Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
env:
16+
NODE_VER: 22
17+
18+
services:
19+
# docker run --name durabletask-sidecar -p 4001:4001 --env 'DURABLETASK_SIDECAR_LOGLEVEL=Debug' --rm cgillum/durabletask-sidecar:latest start --backend Emulator
20+
durabletask-sidecar:
21+
image: cgillum/durabletask-sidecar:latest
22+
ports:
23+
- 4001:4001
24+
env:
25+
DURABLETASK_SIDECAR_LOGLEVEL: Debug
26+
DURABLETASK_STORAGE_PROVIDER: Emulator
27+
28+
steps:
29+
- name: 📥 Checkout code
30+
uses: actions/checkout@v4
31+
32+
- name: ⚙️ NodeJS - Install
33+
uses: actions/setup-node@v4
34+
with:
35+
node-version: ${{ env.NODE_VER }}
36+
registry-url: "https://registry.npmjs.org"
37+
38+
- name: ⚙️ Install dependencies
39+
run: npm install
40+
41+
- name: 🔨 Build packages
42+
run: npm run build
43+
44+
- name: ✅ Run unit tests
45+
run: npm run test:unit
46+
47+
- name: ✅ Run e2e tests
48+
run: npm run test:e2e

0 commit comments

Comments
 (0)