Move the copyrights check to a separate job
Also don't checkout submodules for the checks and copyright jobs since they should not work on them.
This commit is contained in:
parent
e84397256e
commit
04648ac01d
1 changed files with 9 additions and 5 deletions
14
.github/workflows/ci-main.yml
vendored
14
.github/workflows/ci-main.yml
vendored
|
@ -17,7 +17,7 @@ jobs:
|
|||
CLICOLOR_FORCE: 1
|
||||
|
||||
steps:
|
||||
- { uses: actions/checkout@v3, with: { submodules: "recursive", fetch-depth: "0" } }
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set git safe directory
|
||||
if: success() || failure()
|
||||
|
@ -34,14 +34,18 @@ jobs:
|
|||
- name: Run luacheck
|
||||
if: success() || failure()
|
||||
run: luacheck .
|
||||
- name: Copyright check # doxygen creates some image files, so it needs to be done after the copyright check
|
||||
if: success() || failure()
|
||||
run: |
|
||||
./update_copyrights --output=""
|
||||
- name: Doxygen check
|
||||
if: success() || failure()
|
||||
run: doxygen doc/doxygen/Doxyfile
|
||||
|
||||
copyright: # check takes a bit longer and does not need to run in docker
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- { uses: actions/checkout@v4, with: { fetch-depth: 0 } }
|
||||
|
||||
- name: Copyright check
|
||||
run: ./update_copyrights --output=
|
||||
|
||||
ubuntu:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
|
Loading…
Add table
Reference in a new issue