зеркало из https://github.com/microsoft/CCF.git
Move format and license checks to GH actions (#2154)
This commit is contained in:
Родитель
3208e94907
Коммит
2b2980be57
|
@ -1,6 +1,6 @@
|
|||
jobs:
|
||||
- job: Checks
|
||||
displayName: "Formatting, License and Lint Checks"
|
||||
displayName: "Release notes check"
|
||||
|
||||
${{ insert }}: ${{ parameters.env }}
|
||||
|
||||
|
@ -9,10 +9,5 @@ jobs:
|
|||
clean: true
|
||||
fetchDepth: 1
|
||||
|
||||
- script: ./scripts/ci-checks.sh
|
||||
displayName: "Checks"
|
||||
condition: succeededOrFailed()
|
||||
|
||||
- script: python3.8 scripts/extract-release-notes.py /dev/null
|
||||
displayName: "Check presence of release notes entry"
|
||||
condition: eq('${{ parameters.perf_or_release }}', 'release')
|
||||
|
|
|
@ -40,11 +40,6 @@ parameters:
|
|||
ctest_args: '-L "zaptest"'
|
||||
|
||||
jobs:
|
||||
- template: checks.yml
|
||||
parameters:
|
||||
env: ${{ parameters.env.Hosted }}
|
||||
perf_or_release: ${{ parameters.perf_or_release }}
|
||||
|
||||
# Debug
|
||||
- ${{ each target in parameters.target }}:
|
||||
- template: common.yml
|
||||
|
@ -79,6 +74,10 @@ jobs:
|
|||
|
||||
# Release
|
||||
- ${{ if eq(parameters.perf_or_release, 'release') }}:
|
||||
- template: checks.yml
|
||||
parameters:
|
||||
env: ${{ parameters.env.Hosted }}
|
||||
|
||||
- template: common.yml
|
||||
parameters:
|
||||
target: SGX
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
name: "Format and License Checks"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
pull_request:
|
||||
branches: [master]
|
||||
|
||||
jobs:
|
||||
checks:
|
||||
runs-on: ubuntu-18.04
|
||||
container: ccfciteam/ccf-ci:oe0.13.0
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v1
|
||||
|
||||
- run: ./scripts/ci-checks.sh
|
Загрузка…
Ссылка в новой задаче