-
Notifications
You must be signed in to change notification settings - Fork 3
60 lines (51 loc) · 1.82 KB
/
scaler-pr.yml
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
name: Scaler PR
on:
pull_request:
branches: [ main ]
paths-ignore:
- '**.md'
jobs:
validate:
name: Validate
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Read Versions
id: chart
uses: ./.github/actions/parse-chart
with:
workflowRunId: ${{ github.run_id }}
- name: Run Unit Tests
uses: ./.github/actions/dotnet-publish
with:
assemblyVersion: ${{ steps.chart.outputs.assemblyVersion }}
buildConfiguration: Release
fileVersion: ${{ steps.chart.outputs.assemblyFileVersion }}
sign: 'false'
testResultsDirectory: ${{ runner.temp }}/TestResults
- name: Upload Code Coverage
uses: ./.github/actions/code-coverage
with:
codecovToken: ${{ secrets.CODECOV_TOKEN }}
reportPath: ${{ runner.temp }}/TestResults/*/coverage.cobertura.xml
- name: Build Docker Image
uses: ./.github/actions/docker-build
with:
assemblyVersion: ${{ steps.chart.outputs.assemblyVersion }}
buildConfiguration: Release
copyBinaries: 'false'
fileVersion: ${{ steps.chart.outputs.assemblyFileVersion }}
imageRepository: durabletask-azurestorage-scaler
imageTag: ${{ steps.chart.outputs.imageTag }}
- name: Validate Helm Chart
uses: ./.github/actions/helm-test
with:
buildConfiguration: Release
imageTag: ${{ steps.chart.outputs.imageTag }}
scalerImageRepository: durabletask-azurestorage-scaler
- name: Pack Helm Chart
uses: ./.github/actions/helm-package
with:
chartPath: ${{ github.workspace }}/charts/durabletask-azurestorage-scaler
chartVersion: ${{ steps.chart.outputs.chartVersion }}