Skip to content

Commit

Permalink
Add task ID tags to concept exercise tests (#476)
Browse files Browse the repository at this point in the history
* AnnalynsInfiltration

* Bandwagoner

* BettysBikeShop

* Go

* LuciansLusciousLasagna

* LuigisLusciousLasagna

* RolePlayingGame

* TicketPlease

* TisburyTreasureHunt

* TracksOnTracksOnTracks

* ValentinesDay

* Fix top level describe

* Update elm-test-rs to 2.0

* Cleanup build script

* Update elm-tooling-action to v1.3

Co-authored-by: Matthieu Pizenberg <[email protected]>
  • Loading branch information
jiegillet and mpizenberg authored Mar 28, 2022
1 parent b7fde99 commit 42a312e
Show file tree
Hide file tree
Showing 14 changed files with 910 additions and 853 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
4 changes: 1 addition & 3 deletions bin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion elm-tooling.json
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 42a312e

Please sign in to comment.