-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump dependencies to follow Topiary v0.2.0 (#15)
- Loading branch information
Showing
2,929 changed files
with
1,119,453 additions
and
599,142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
|
||
inputs: | ||
topiary: | ||
description: 'What `topiary` command to test' | ||
samples: | ||
description: 'Path to the test samples' | ||
|
||
runs: | ||
using: composite | ||
|
||
steps: | ||
- name: Run a smoke test | ||
shell: bash | ||
run: | | ||
## Run a tiny smoke test; checking that Topiary manages to start, | ||
## parse a simple OCaml command and output the right thing. | ||
echo 'open Foo' > expected.ml | ||
echo 'open Foo' \ | ||
| ${{ inputs.topiary }} --language ocaml \ | ||
> result.ml | ||
diff expected.ml result.ml | ||
- name: Run proper tests | ||
shell: bash | ||
run: | | ||
## Test on OCaml implementation files (.ml) | ||
cat ${{ inputs.samples }}/input/ocaml.ml \ | ||
| ${{ inputs.topiary }} --language ocaml-implementation \ | ||
> ocaml.ml | ||
diff ${{ inputs.samples }}/expected/ocaml.ml ocaml.ml | ||
## Test on OCaml interface files (.mli) | ||
cat ${{ inputs.samples }}/input/ocaml.mli \ | ||
| ${{ inputs.topiary }} --language ocaml-interface \ | ||
> ocaml.mli | ||
diff ${{ inputs.samples }}/expected/ocaml.mli ocaml.mli |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.