-
Notifications
You must be signed in to change notification settings - Fork 5
72 lines (67 loc) · 2.14 KB
/
Copy pathci.yml
File metadata and controls
72 lines (67 loc) · 2.14 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
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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Test certificate setup without Azure access
shell: pwsh
run: ./setup/tests/Certificates.Tests.ps1
- 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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: '3.11'
- run: pip install -r requirements.txt pytest
- run: python -m pytest tests