Skip to content
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

Tooling and CI set up + 1st four exercises #25

Merged
merged 24 commits into from
Sep 2, 2024
Merged

Commits on Aug 23, 2024

  1. hello-word, leap, configuration updates

    Completed the hello-world and leap exercises.
    Updated configuration.
    gvrooyen committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    41c644f View commit details
    Browse the repository at this point in the history
  2. Add workflow in test.yml

    gvrooyen committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    4f70d44 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    27d56ac View commit details
    Browse the repository at this point in the history

Commits on Aug 24, 2024

  1. Completed difference-of-squares, added format-all

    Completed the difference-of-squares practice exercise, and added the
    `bin/format-all.sh` script that recursively searches for .odin files and
    runs `odinfmt` on them.
    gvrooyen committed Aug 24, 2024
    Configuration menu
    Copy the full SHA
    c7fb86e View commit details
    Browse the repository at this point in the history
  2. Formatted source, added formatting to webhook

    All source files have been reformatted with the `odinfmt.json` spec.
    `bin/format-all.sh` is now run automatically on commit.
    gvrooyen committed Aug 24, 2024
    Configuration menu
    Copy the full SHA
    6d31497 View commit details
    Browse the repository at this point in the history
  3. Added step to push autoformatting changes

    The `test.yml` GitHub workflow now pushes any changes that it makes, so
    that they persist in the repo.
    gvrooyen committed Aug 24, 2024
    Configuration menu
    Copy the full SHA
    aa92d6e View commit details
    Browse the repository at this point in the history
  4. Modified test.yml to not fail on no formatting

    `test.yml` now only attempts a commit and push if the automated
    formatting actually changed any files.
    gvrooyen committed Aug 24, 2024
    Configuration menu
    Copy the full SHA
    92817bc View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    17ef99f View commit details
    Browse the repository at this point in the history
  6. Fixed bin/verify-exercises

    The verify-exercises script now runs the individual test for both
    concept and practice exercises, and is the default in the GitHub
    workflow.
    gvrooyen committed Aug 24, 2024
    Configuration menu
    Copy the full SHA
    5cf8060 View commit details
    Browse the repository at this point in the history

Commits on Aug 25, 2024

  1. Added the "grains" exercise

    Tests were lifted from the Gleam track.
    gvrooyen committed Aug 25, 2024
    Configuration menu
    Copy the full SHA
    0024848 View commit details
    Browse the repository at this point in the history
  2. Updated README; fixed test verification

    - The README now contains more thorough instructions on how to add a new
      exercise.
    - Fixed a variable name in the test runner that caused the "test all
      solutions" loop to run multiple times when verifying solutions.
    gvrooyen committed Aug 25, 2024
    Configuration menu
    Copy the full SHA
    48c2bbe View commit details
    Browse the repository at this point in the history

Commits on Aug 26, 2024

  1. Configuration menu
    Copy the full SHA
    11a21ff View commit details
    Browse the repository at this point in the history
  2. Fixed testing bug that clobbered stub solutions

    - Fixed bin/run-test.sh so that it doesn't delete the stub solution when
      a test fails.
    - Restored exercises, and added a NotImplemented error condition for the
      stubs.
    gvrooyen committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    3ffcf58 View commit details
    Browse the repository at this point in the history
  3. Small code fixes. Updated README.

    - Ran the code formatter on source files.
    - Rehaul of the README to follow Python's example.
    gvrooyen committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    97b7017 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    fd4c5d1 View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2024

  1. Fixed and tested the test.yml action

    The workflow now uses a fixed commit hash to pull a specific release of
    Odin. We now use Ubuntu 22.04 which has the libffi8 dependency, and add
    clang as the only other dependency.
    gvrooyen committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    cfbb1b8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    deb0858 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3ea8588 View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2024

  1. Configuration menu
    Copy the full SHA
    9cd2286 View commit details
    Browse the repository at this point in the history
  2. Test runner now checks that stub solution fails

    Added a check to bin/run-test.sh so that verifies that the stub solution
    does *not* pass any tests. Fixed hello-world.odin to actually be a stub.
    gvrooyen committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    2a8d7cc View commit details
    Browse the repository at this point in the history
  3. Fixed incorrect stubs, added panics for stub procs

    - Improved bin/run-test.sh to add more visible color coding to the
      output.
    - Replaced NotImplemented error codes with a compile-time panic for
      procedures that have not yet been implemented.
    - Fixed stubs that were actually complete examples.
    gvrooyen committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    0d5ecdd View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    585abb5 View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2024

  1. Added support for skipping and unskipping tests

    - Exercises' unit tests were modified so that only a minimal subset of
      tests are initially enabled; the rest are skipped.
    - The test runner was modified to automatically unskip all test cases
      before running the tests.
    gvrooyen committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    5f81ce0 View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2024

  1. Configuration menu
    Copy the full SHA
    1bf9d9c View commit details
    Browse the repository at this point in the history