Skip to content

Commit

Permalink
Merge pull request #54 from 40ants/test-on-windows
Browse files Browse the repository at this point in the history
Trying to run tests on windows.
  • Loading branch information
svetlyak40wt authored Jan 31, 2024
2 parents 244e2f4 + 2fce11f commit e5ea665
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 38 deletions.
52 changes: 19 additions & 33 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,57 +15,43 @@
},
"jobs": {
"run-tests": {
"runs-on": "ubuntu-latest",
"strategy": {
"fail-fast": false,
"matrix": {
"os": [
"ubuntu-latest",
"windows-latest"
],
"lisp": [
"sbcl-bin",
"ccl-bin"
]
}
},
"runs-on": "${{ matrix.os }}",
"env": {
"OS": "ubuntu-latest",
"OS": "${{ matrix.os }}",
"QUICKLISP_DIST": "quicklisp",
"LISP": "sbcl-bin"
"LISP": "${{ matrix.lisp }}"
},
"steps": [
{
"name": "Checkout Code",
"uses": "actions/checkout@v3"
},
{
"name": "Grant All Perms to Make Cache Restoring Possible",
"run": "sudo mkdir -p /usr/local/etc/roswell\n sudo chown \"${USER}\" /usr/local/etc/roswell\n # Here the ros binary will be restored:\n sudo chown \"${USER}\" /usr/local/bin",
"shell": "bash"
},
{
"name": "Get Current Month",
"id": "current-month",
"run": "echo \"value=$(date -u \"+%Y-%m\")\" >> $GITHUB_OUTPUT",
"shell": "bash"
},
{
"name": "Cache Roswell Setup",
"id": "cache",
"uses": "actions/cache@v3",
"with": {
"path": "qlfile\nqlfile.lock\n~/.cache/common-lisp/\n~/.roswell\n/usr/local/etc/roswell\n/usr/local/bin/ros\n/usr/local/Cellar/roswell\n.qlot",
"key": "a-${{ steps.current-month.outputs.value }}-${{ env.cache-name }}-ubuntu-latest-quicklisp-sbcl-bin-${{ hashFiles('qlfile.lock', '*.asd') }}"
}
},
{
"name": "Restore Path To Cached Files",
"run": "echo $HOME/.roswell/bin >> $GITHUB_PATH\n echo .qlot/bin >> $GITHUB_PATH",
"shell": "bash",
"if": "steps.cache.outputs.cache-hit == 'true'"
},
{
"name": "Setup Common Lisp Environment",
"uses": "40ants/setup-lisp@v2",
"uses": "40ants/setup-lisp@v3",
"with": {
"asdf-system": "reblocks"
},
"if": "steps.cache.outputs.cache-hit != 'true'"
}
},
{
"name": "Run Tests",
"uses": "40ants/run-tests@v2",
"with": {
"asdf-system": "reblocks",
"coveralls-token": "${{ secrets.github_token }}"
"coveralls-token": "\n${{ matrix.lisp == 'sbcl-bin' &&\n matrix.os == 'ubuntu-latest' &&\n matrix.quicklisp == 'ultralisp' &&\n secrets.github_token }}"
}
}
]
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"uses": "actions/cache@v3",
"with": {
"path": "qlfile\nqlfile.lock\n~/.cache/common-lisp/\n~/.roswell\n/usr/local/etc/roswell\n/usr/local/bin/ros\n/usr/local/Cellar/roswell\n.qlot",
"key": "a-${{ steps.current-month.outputs.value }}-2-${{ env.cache-name }}-ubuntu-latest-quicklisp-sbcl-bin-${{ hashFiles('qlfile.lock', '*.asd') }}"
"key": "a-${{ steps.current-month.outputs.value }}-${{ env.cache-name }}-ubuntu-latest-quicklisp-sbcl-bin-${{ hashFiles('qlfile.lock', '*.asd') }}"
}
},
{
Expand All @@ -49,7 +49,7 @@
},
{
"name": "Setup Common Lisp Environment",
"uses": "40ants/setup-lisp@v2",
"uses": "40ants/setup-lisp@v3",
"with": {
"asdf-system": "reblocks-docs"
},
Expand All @@ -66,4 +66,4 @@
]
}
}
}
}
2 changes: 1 addition & 1 deletion .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
},
{
"name": "Setup Common Lisp Environment",
"uses": "40ants/setup-lisp@v2",
"uses": "40ants/setup-lisp@v3",
"with": {
"asdf-system": "reblocks"
},
Expand Down
6 changes: 5 additions & 1 deletion src/ci.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@
:on-push-to "master"
:by-cron "0 10 * * 1"
:on-pull-request t
:cache t
;; :cache t
:jobs ((40ants-ci/jobs/run-tests:run-tests
:os ("ubuntu-latest"
"windows-latest")
:lisp ("sbcl-bin"
"ccl-bin")
:coverage t)))

(defworkflow docs
Expand Down

0 comments on commit e5ea665

Please sign in to comment.