forked from compdemocracy/polis
-
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.
Run clojure tests on commits to math (compdemocracy#506)
* Added closure testing workflow on GitHub Actions. * Added feature branch to force testing while PR. * Typo fix. * Oops. Add lein tool. * infra: Ensure we're in math dir to run lein. * test: Added test-selectors for running only non-integration tests for math. * test: Fixed typo in setup-clojure args. * Upgraded specified java from 1.7 to 1.8.
- Loading branch information
Showing
3 changed files
with
42 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Test Math/Clojure | ||
|
||
on: | ||
push: | ||
branches: ["dev", "504-clj-tests"] | ||
# Note: Only configured for client-admin right now. | ||
paths: | ||
- .github/workflows/test-clojure.yml | ||
- math/** | ||
pull_request: | ||
types: ["opened", "reopened", "synchronize"] | ||
paths: | ||
- .github/workflows/test-clojure.yml | ||
- math/** | ||
|
||
jobs: | ||
test-clj: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
|
||
- uses: actions/[email protected] | ||
with: | ||
java-version: 1.8 | ||
|
||
- uses: DeLaGuardo/setup-clojure@master | ||
with: | ||
tools-deps: 1.10.1 | ||
lein: 2.9.4 | ||
|
||
- working-directory: math | ||
# Runs all except integration tests which require database and setup/teardown | ||
run: "lein test :default" |
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 |
---|---|---|
@@ -1 +1 @@ | ||
java.runtime.version=1.7 | ||
java.runtime.version=1.8 |