File tree Expand file tree Collapse file tree
functional_tests/subdirectory_lake_package_lean_checker Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : ' Subdirectory Lake Package using lean4checker Functional Test'
2+ description : |
3+ Run `lean-action` with the `lake-package-directory` input
4+ on Lake package generated by `lake init` in a subdirectory of the repository.
5+
6+ Also run lean4checker
7+ inputs :
8+ toolchain :
9+ description : ' Toolchain to use for the test'
10+ required : true
11+ runs :
12+ using : ' composite'
13+ steps :
14+ # TODO: once `lean-action` supports just setup, use it here
15+ - name : install elan
16+ run : |
17+ set -o pipefail
18+ curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh -s -- -y --default-toolchain ${{ inputs.toolchain }}
19+ echo "$HOME/.elan/bin" >> "$GITHUB_PATH"
20+ shell : bash
21+
22+ - name : create Lake package in a_subdirectory
23+ run : |
24+ mkdir a_subdirectory
25+ cd a_subdirectory
26+ lake init subdirpackage
27+ lake update
28+ shell : bash
29+
30+ - name : " run `lean-action`"
31+ id : lean-action
32+ uses : ./
33+ with :
34+ use-github-cache : false
35+ lake-package-directory : " a_subdirectory"
36+ lean4checker : true
37+
38+ - name : verify `lake build` success
39+ env :
40+ OUTPUT_NAME : " build-status"
41+ EXPECTED_VALUE : " SUCCESS"
42+ ACTUAL_VALUE : ${{ steps.lean-action.outputs.build-status }}
43+ run : .github/functional_tests/test_helpers/verify_action_output.sh
44+ shell : bash
45+
46+ - name : verify `lake test` didn't run
47+ env :
48+ OUTPUT_NAME : " test-status"
49+ EXPECTED_VALUE : " "
50+ ACTUAL_VALUE : ${{ steps.lean-action.outputs.test-status }}
51+ run : .github/functional_tests/test_helpers/verify_action_output.sh
52+ shell : bash
Original file line number Diff line number Diff line change @@ -133,6 +133,14 @@ jobs:
133133 - uses : ./.github/functional_tests/subdirectory_lake_package
134134 with :
135135 toolchain : ${{ env.toolchain }}
136+
137+ subdirectory-lake-package-lean-checker :
138+ runs-on : ubuntu-latest
139+ steps :
140+ - uses : actions/checkout@v5
141+ - uses : ./.github/functional_tests/subdirectory_lake_package_lean_checker
142+ with :
143+ toolchain : ${{ env.toolchain }}
136144
137145 reinstall-transient-toolchain :
138146 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments