Runs tests on every push
This commit is contained in:
parent
a184e7af29
commit
99212107ca
33
.github/workflows/CI.yaml
vendored
Normal file
33
.github/workflows/CI.yaml
vendored
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
name: CI
|
||||||
|
|
||||||
|
on: [ push ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test-clj:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Install Lein
|
||||||
|
uses: DeLaGuardo/setup-clojure@master
|
||||||
|
with:
|
||||||
|
lein: 'latest'
|
||||||
|
- name: Run Tests
|
||||||
|
run: lein test
|
||||||
|
test-cljs:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Prepare Java
|
||||||
|
uses: actions/setup-java@v2
|
||||||
|
with:
|
||||||
|
distribution: 'temurin'
|
||||||
|
java-version: '8'
|
||||||
|
- name: Install Node
|
||||||
|
uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: '14'
|
||||||
|
- run: npm install
|
||||||
|
- name: Install shadow-cljs
|
||||||
|
run: npm install -g shadow-cljs
|
||||||
|
- name: Run Tests
|
||||||
|
run: shadow-cljs compile test && node out/node-tests.js
|
4
.gitignore
vendored
4
.gitignore
vendored
@ -24,6 +24,10 @@ notes
|
|||||||
*~
|
*~
|
||||||
q
|
q
|
||||||
|
|
||||||
|
# Clojure Script
|
||||||
|
.shadow-cljs/
|
||||||
|
node_modules/
|
||||||
|
|
||||||
# Don't commit the data directory that we'll
|
# Don't commit the data directory that we'll
|
||||||
# use to hold the data from
|
# use to hold the data from
|
||||||
# https://github.com/thelmuth/program-synthesis-benchmark-datasets
|
# https://github.com/thelmuth/program-synthesis-benchmark-datasets
|
||||||
|
2427
package-lock.json
generated
Normal file
2427
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -16,6 +16,10 @@
|
|||||||
"license": "EPL",
|
"license": "EPL",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"http-server": "^0.12.3",
|
"http-server": "^0.12.3",
|
||||||
"shadow-cljs": "^2.10.10"
|
"shadow-cljs": "^2.10.10",
|
||||||
|
"source-map-support": "^0.5.20"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"ws": "^8.2.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
{:source-paths ["src"]
|
{:source-paths ["src" "test"]
|
||||||
:dependencies []
|
:dependencies []
|
||||||
:dev-http {8080 "target/"}
|
:dev-http {8080 "target/"}
|
||||||
:builds {:app {:output-dir "target/"
|
:builds {:app {:output-dir "target/"
|
||||||
:asset-path "."
|
:asset-path "."
|
||||||
:target :browser
|
:target :browser
|
||||||
:modules {:main {:init-fn propeller.main/main!}}}}}
|
:modules {:main {:init-fn propeller.main/main!}}}
|
||||||
|
:test {:extra-paths ["src"]
|
||||||
|
:target :node-test
|
||||||
|
:output-to "out/node-tests.js"}}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user