Skip to content

Figure out CI #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
simonw opened this issue Dec 1, 2022 · 2 comments
Closed

Figure out CI #2

simonw opened this issue Dec 1, 2022 · 2 comments
Labels
wontfix This will not be worked on

Comments

@simonw
Copy link
Owner

simonw commented Dec 1, 2022

Would be great to have GitHub Actions run tests against all of my code on every commit.

Not sure how to do this in Rust though. Might need be to use Cargo?

@simonw
Copy link
Owner Author

simonw commented Dec 1, 2022

I'm going to use a Justfile in each directory for this.

Used GPT chat to help write this bash script:

# Recursively search for Justfiles and run just against each one

# Use the find command to search for Justfiles in the current directory and its subdirectories
justfiles=$(find . -name "Justfile")

echo $justfiles

# Save the current directory so we can change back to it later
orig_dir=$(pwd)

# Loop through each Justfile
for justfile in $justfiles; do
  # Get the directory containing the Justfile
  dir=$(dirname $justfile)

  # Change to the directory containing the Justfile
  pushd $dir

  # Run just without any arguments
  just

  # Change back to the original directory
  popd
done

# Change back to the original directory
cd $orig_dir

simonw added a commit that referenced this issue Dec 1, 2022
simonw added a commit that referenced this issue Dec 3, 2022
@simonw
Copy link
Owner Author

simonw commented Dec 6, 2022

I'm fine with my cargo run workflow now, not going to bother with any CI.

@simonw simonw closed this as completed Dec 6, 2022
@simonw simonw added the wontfix This will not be worked on label Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant