|
1 |
| -name: Build and test libocpp |
2 |
| -on: |
| 1 | +name: Build, Lint and Test |
| 2 | +on: |
3 | 3 | pull_request: {}
|
4 | 4 | workflow_dispatch:
|
5 | 5 | inputs:
|
|
11 | 11 | options:
|
12 | 12 | - 'ubuntu-22.04'
|
13 | 13 | - 'large-ubuntu-22.04-xxl'
|
14 |
| -jobs: |
15 |
| - lint: |
16 |
| - name: Lint |
17 |
| - runs-on: ${{ inputs.runner || 'ubuntu-22.04' }} |
18 |
| - steps: |
19 |
| - - name: Checkout libocpp |
20 |
| - uses: actions/checkout@v3 |
21 |
| - with: |
22 |
| - path: source |
23 |
| - - name: Run clang-format |
24 |
| - uses: everest/everest-ci/github-actions/run-clang-format@v1.1.0 |
25 |
| - with: |
26 |
| - source-dir: source |
27 |
| - extensions: hpp,cpp |
28 |
| - exclude: cache |
29 |
| - install_and_test: |
30 |
| - name: Install and test |
31 |
| - runs-on: ${{ inputs.runner || 'ubuntu-22.04' }} |
32 |
| - steps: |
33 |
| - - name: Checkout libocpp |
34 |
| - uses: actions/checkout@v3 |
35 |
| - with: |
36 |
| - path: source |
37 |
| - - name: Setup run scripts |
38 |
| - run: | |
39 |
| - mkdir scripts |
40 |
| - rsync -a source/.ci/build-kit/ scripts |
41 |
| - - name: Pull docker container |
42 |
| - run: | |
43 |
| - docker pull --platform=linux/x86_64 --quiet ghcr.io/everest/everest-ci/build-kit-base:latest |
44 |
| - docker image tag ghcr.io/everest/everest-ci/build-kit-base:latest build-kit |
45 |
| - - name: Run install with tests |
46 |
| - run: | |
47 |
| - docker run \ |
48 |
| - --volume "$(pwd):/ext" \ |
49 |
| - --name test-container \ |
50 |
| - build-kit run-script install_and_test |
51 |
| - - name: Archive test results |
52 |
| - if: always() |
53 |
| - uses: actions/upload-artifact@v3 |
54 |
| - with: |
55 |
| - name: ctest-report |
56 |
| - path: ${{ github.workspace }}/ctest-report |
| 14 | + schedule: |
| 15 | + - cron: '37 13,1 * * *' |
57 | 16 |
|
| 17 | +jobs: |
| 18 | + ci: |
| 19 | + name: Build, Lint and Test |
| 20 | + uses: everest/everest-ci/.github/workflows/continuous_integration.yml@v1.4.2 |
| 21 | + permissions: |
| 22 | + contents: read |
| 23 | + secrets: |
| 24 | + coverage_deploy_token: ${{ secrets.SA_GITHUB_PAT }} |
| 25 | + with: |
| 26 | + runner: ${{ inputs.runner || 'ubuntu-22.04' }} |
| 27 | + artifact_deploy_target_repo: EVerest/everest.github.io |
| 28 | + run_coverage: true |
| 29 | + do_not_run_coverage_badge_creation: false |
| 30 | + run_install_wheels: false |
| 31 | + run_integration_tests: false |
| 32 | + ctest_report_path: ctest-report |
| 33 | + coverage_report_path: gcovr-coverage |
| 34 | + coverage_xml_path: gcovr-coverage-xml.xml |
0 commit comments