Skip to content

Commit

Permalink
gha: faster submodule init
Browse files Browse the repository at this point in the history
  • Loading branch information
csegarragonz committed Dec 6, 2023
1 parent 410b188 commit 02e853b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ jobs:
with:
submodules: true
# --- Formatting ---
- name: "Install faasmctl"
run: pip3 install $(cat ./requirements.txt | grep faasmctl | tr -d '\n')
- name: "Format code"
run: ./bin/inv_wrapper.sh format-code --check

Expand All @@ -42,8 +40,6 @@ jobs:
steps:
- name: "Checkout code"
uses: actions/checkout@v4
with:
submodules: true
# Check if any of the submodules have been modified
- uses: dorny/paths-filter@v2
id: filter
Expand All @@ -55,6 +51,8 @@ jobs:
- name: "Get CPP/Python commits"
id: submodule-commit
run: |
git submodule update --init ./cpp
git submodule update --init ./python
sudo apt install -y zstd
git config --global --add safe.directory "$GITHUB_WORKSPACE"
echo "cpp-commit=$(git submodule status ./cpp | cut '-d ' -f 2)" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 02e853b

Please sign in to comment.