Repository navigation
156 lines (118 loc) · 4.32 KB
/
Copy pathci.yml
File metadata and controls
156 lines (118 loc) · 4.32 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
name: CI
concurrency:
group: ${{github.workflow}}-${{github.event.pull_request.number || github.sha}}
cancel-in-progress: true
permissions: {}
on:
push:
branches-ignore:
- "dependabot/**"
- "renovate/**"
pull_request:
schedule:
- cron: '0 0 * * 6'
env:
NPM_CONFIG_AUDIT: "false"
NPM_CONFIG_FUND: "false"
DOTNET_CLI_TELEMETRY_OPTOUT: "true"
NUGET_XMLDOC_MODE: "skip"
jobs:
lint:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- run: git config --global core.autocrlf true
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- run: curl -L https://github.com/editorconfig-checker/editorconfig-checker/releases/download/2.3.5/ec-linux-amd64.tar.gz | tar xzf - -C /opt
- run: /opt/bin/ec-linux-amd64 -v
- name: Install deps
run: npm ci
- name: Lint
run: npm run eslint
test-js:
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
fail-fast: false
matrix:
version:
- '18.1'
- '22.2'
- 'latest'
steps:
- name: Checkout sources
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Build no-jquery package
run: node build/make-nojquery
- name: Move lockfile
if: ${{ matrix.version != 'latest' }}
shell: bash
run: cp -f js-test/${{ matrix.version }}/package-lock.json package-lock.json
- run: npm ci
- run: npm run dts
- run: npm run karma
- run: npm run karma-bundled
- run: npm run karma-bundled-nojquery
- run: npm run karma-bundled-nojquery-cjs
- uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7
with:
files: js-test/coverage/lcov.info
test-dotnet:
runs-on: windows-latest
permissions:
contents: read
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- run: nuget install -Verbosity quiet -ExcludeVersion -OutputDirectory . -Version 2022.2.3 JetBrains.dotCover.CommandLineTools
- uses: ./.github/actions/dotnet-test-build
- run: JetBrains.dotCover.CommandLineTools\tools\dotCover cover --ReturnTargetExitCode --ReportType=DetailedXML --Filters="+:module=DevExtreme.AspNet.Data" --Output=coverage_dotnet.xml --TargetExecutable=net\dotnet-test-all.cmd
- uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7
with:
files: coverage_dotnet.xml
release-packages:
runs-on: ubuntu-latest
permissions:
contents: read
env:
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT: 1
BUILD_CONFIGURATION: ${{ (github.repository == 'DevExpress/DevExtreme.AspNet.Data' && github.event_name == 'push' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch)) && 'Release' || 'Debug' }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- run: node build/make-nojquery
- run: node build/replace-meta "${{ github.run_number }}" "${{ github.ref }}" "${{ github.repository }}"
- run: npm pack
- run: npm pack ./js-nojquery
- name: Prepare NuGet deps
if: env.BUILD_CONFIGURATION == 'Release'
uses: ./.github/actions/prepare-nuget-deps
with:
encrypted-key-path: net/DevExtreme.AspNet.Data/release.snk.enc
release-key-secret: ${{ secrets.RELEASE_KEY_SECRET }}
- name: Pack NuGet package
run: dotnet pack net/DevExtreme.AspNet.Data -c ${{ env.BUILD_CONFIGURATION }} --include-symbols
- name: Remove signing key
if: always()
shell: bash
run: rm -f net/DevExtreme.AspNet.Data/release.snk
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7
with:
name: release-packages
path: |
net/DevExtreme.AspNet.Data/bin/${{ env.BUILD_CONFIGURATION }}/*.nupkg
devextreme-aspnet-data-*.tgz
retention-days: 14
if-no-files-found: error
docfx:
runs-on: windows-latest
permissions:
contents: read
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- run: dotnet build net/DevExtreme.AspNet.Data
- run: net\docfx\build.cmd
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7
with:
name: docfx-site
path: net/docfx/build/site