-
Notifications
You must be signed in to change notification settings - Fork 11
73 lines (58 loc) · 1.65 KB
/
pr-validation.yaml
File metadata and controls
73 lines (58 loc) · 1.65 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
name: 🚀 Test and Build
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
jobs:
lint-and-unit-tests:
runs-on: ubuntu-latest
env:
NODE_VER: 18.x
steps:
- name: 📥 Checkout code
uses: actions/checkout@v4
- name: ⚙️ NodeJS - Install
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VER }}
registry-url: "https://registry.npmjs.org"
- name: ⚙️ Install dependencies
run: npm install
- name: 🔍 Run linting
run: npm run lint
- name: ✅ Run unit tests
run: npm run test:unit
e2e-tests:
strategy:
fail-fast: false
matrix:
node-version: ["22.x", "24.x"]
needs: lint-and-unit-tests
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout code
uses: actions/checkout@v4
- name: ⚙️ NodeJS - Install
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
registry-url: "https://registry.npmjs.org"
- name: ⚙️ Install dependencies
run: npm install
# Install Go SDK for durabletask-go sidecar
- name: 🔧 Install Go SDK
uses: actions/setup-go@v5
with:
go-version: "stable"
# Install and run the durabletask-go sidecar for running e2e tests
- name: ✅ Run E2E tests with durabletask-go sidecar
run: |
go install github.com/microsoft/durabletask-go@main
durabletask-go --port 4001 &
sleep 5 # Wait for sidecar to be ready
npm run test:e2e:internal