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:
Gunter Labes 2023-09-29 20:47:58 +02:00 committed by GitHub
parent e84397256e
commit 04648ac01d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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