Skip to content

Commit

Permalink
ci: add script and dockerfiles checks to github build action
Browse files Browse the repository at this point in the history
Signed-off-by: Alice Khoudli <[email protected]>
  • Loading branch information
Synar committed Nov 8, 2024
1 parent a92037a commit c9daa1d
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,32 @@ jobs:
name: osrdyne-test
path: osrd-osrdyne-test.tar

check_dockerfiles:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Build dummy test_data and static_assets images
run: |
echo -e "FROM scratch" > Dockerfile.empty
docker build -t test_data -f Dockerfile.empty .
docker build -t static_assets -f Dockerfile.empty .
- name: Find and check all Dockerfiles using docker build --check
run: |
set -eo pipefail
find . -name 'Dockerfile*' -print0 | xargs -0 -I {} docker build --file {} --check .
check_scripts:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Find and check all scripts using ShellCheck
uses: ludeeus/action-shellcheck@master

check_generated_railjson_sync:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit c9daa1d

Please sign in to comment.