Skip to content

Commit

Permalink
Add GitHub Action.
Browse files Browse the repository at this point in the history
  • Loading branch information
dracos committed Jan 21, 2022
1 parent 9f8cfe0 commit 4d5881d
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 3 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Makefile CI

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: browser-actions/setup-chrome@latest
- run: chrome --version
- run: npx jasmine-browser-runner runSpecs

2 changes: 1 addition & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
</select>
</form>

<script type="text/javascript" src="../test/lib/jquery-2.2.4.min.js"></script>
<script type="text/javascript" src="../src/jquery-2.2.4.min.js"></script>
<script type="text/javascript" src="../src/jquery.multi-select.js"></script>
<script type="text/javascript">
$(function(){
Expand Down
File renamed without changes.
19 changes: 19 additions & 0 deletions spec/support/jasmine-browser.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"srcDir": "src",
"srcFiles": [
"jquery-2.2.4.min.js",
"jquery.multi-select.js"
],
"specDir": "spec",
"specFiles": [
"**/*[sS]pec.js"
],
"env": {
"stopSpecOnExpectationFailure": false,
"stopOnSpecFailure": false,
"random": true
},
"browser": {
"name": "headlessChrome"
}
}
File renamed without changes.
4 changes: 2 additions & 2 deletions test/SpecRunner.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
<script src="lib/jasmine-2.4.1/jasmine-html.js"></script>
<script src="lib/jasmine-2.4.1/boot.js"></script>

<script src="lib/jquery-2.2.4.min.js"></script>
<script src="../src/jquery-2.2.4.min.js"></script>
<script src="../src/jquery.multi-select.js"></script>

<!-- include spec files here... -->
<script src="spec/MultiSelectSpec.js"></script>
<script src="../spec/MultiSelectSpec.js"></script>

</head>

Expand Down

0 comments on commit 4d5881d

Please sign in to comment.