-
Notifications
You must be signed in to change notification settings - Fork 4
69 lines (64 loc) · 2.01 KB
/
Copy pathci.yml
File metadata and controls
69 lines (64 loc) · 2.01 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
name: CI
on:
push:
branches: [main]
pull_request:
jobs:
epp-setup:
name: EPP setup (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- name: Compile Bicep without deploying
shell: pwsh
run: |
az bicep install
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
az bicep build --file (Join-Path $env:GITHUB_WORKSPACE 'setup/infra/main.bicep') --outfile (Join-Path $env:RUNNER_TEMP 'epp-main.json')
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
javascript:
name: JavaScript (Node.js)
runs-on: ubuntu-latest
defaults:
run:
working-directory: javascript
strategy:
matrix:
node-version: [20.x, 22.x]
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm test
dotnet:
name: C# (.NET isolated)
runs-on: ubuntu-latest
defaults:
run:
working-directory: dotnet
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
with:
dotnet-version: '8.0.x'
- run: dotnet build
- run: dotnet test tests
python:
name: Python (v2 model)
runs-on: ubuntu-latest
defaults:
run:
working-directory: python
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: '3.11'
- run: pip install -r requirements.txt pytest
- run: python -m pytest tests