Skip to content

Add task ID tags to concept exercise tests #476

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

Merged
merged 15 commits into from
Mar 28, 2022
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@ jobs:
node-version: ${{ matrix.node-version }}

- name: Install elm + tools and cache the ELM_HOME directory
uses: mpizenberg/elm-tooling-action@v1.2
uses: mpizenberg/elm-tooling-action@v1.3
with:
cache-key: elm-${{ matrix.node-version }}-${{ hashFiles('elm-tooling.json', 'template/elm.json') }}
cache-restore-key: elm-${{ matrix.node-version }}
4 changes: 1 addition & 3 deletions bin/build.sh
Original file line number Diff line number Diff line change
@@ -41,10 +41,8 @@ cp template/elm.json build/
for example_file in exercises/concept/**/.meta/*.elm
do
exercise_dir=$(dirname $(dirname $example_file))
# This code works if there is only one file in src, or if the first file
# returned by ls is the correct one (the one that Examplar.elm should replace)
# get kebab-case slug and transform it to PascalCase
exercise_name=$(basename $exercise_dir | sed -r 's/(^|-)([a-z])/\U\2/g')
echo $exercise_name
# TODO: check that all exercise_name are unique
cp $exercise_dir/src/*.elm "build/src/"
cp $example_file "build/src/$exercise_name.elm"
2 changes: 1 addition & 1 deletion elm-tooling.json
Original file line number Diff line number Diff line change
@@ -2,6 +2,6 @@
"tools": {
"elm": "0.19.1",
"elm-format": "0.8.5",
"elm-test-rs": "1.0.0"
"elm-test-rs": "2.0.0"
}
}
Loading