Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run tests on different lisp implementations. #22

Merged
merged 22 commits into from
Mar 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,41 @@
}
}
]
},
"custom-steps": {
"runs-on": "ubuntu-latest",
"env": {
"OS": "ubuntu-latest",
"QUICKLISP_DIST": "quicklisp",
"LISP": "ccl-bin"
},
"steps": [
{
"name": "Checkout Code",
"uses": "actions/checkout@v4"
},
{
"name": "Setup Common Lisp Environment",
"uses": "40ants/setup-lisp@v4",
"with": {
"asdf-system": "40ants-ci",
"cache": "true"
}
},
{
"name": "Show Roswell Config",
"run": "ros config",
"shell": "bash"
},
{
"name": "Custom ENV",
"run": "echo $CUSTOM_ENV",
"shell": "bash",
"env": {
"CUSTOM_ENV": "Hello world!"
}
}
]
}
}
}
8 changes: 6 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,14 @@
}
]
},
"env": {
"CUSTOM_ENV_HELLO": "Hello"
},
"jobs": {
"build-docs": {
"runs-on": "ubuntu-latest",
"env": {
"CUSTOM_ENV_WORLD": "World!",
"OS": "ubuntu-latest",
"QUICKLISP_DIST": "quicklisp",
"LISP": "sbcl-bin"
Expand All @@ -30,15 +34,15 @@
"name": "Setup Common Lisp Environment",
"uses": "40ants/setup-lisp@v4",
"with": {
"asdf-system": "40ants-ci",
"asdf-system": "40ants-ci-docs",
"cache": "true"
}
},
{
"name": "Build Docs",
"uses": "40ants/build-docs@v1",
"with": {
"asdf-system": "40ants-ci",
"asdf-system": "40ants-ci-docs",
"error-on-warnings": true
}
}
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/docs/
/docs/build/
/env/
/.qlot
/.DS_Store
*.fasl
.DS_Store
11 changes: 11 additions & 0 deletions 40ants-ci-docs.asd
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
(defsystem "40ants-ci-docs"
:author "Alexander Artemenko <[email protected]>"
:license "Unlicense"
:class :package-inferred-system
:description "Provides documentation for 40ants-ci."
:source-control (:git "https://github.com/40ants/ci")
:bug-tracker "https://github.com/40ants/ci/issues"
:homepage "https://40ants.com/ci/"
:pathname "docs"
:depends-on ("40ants-ci"
"40ants-ci-docs/index"))
8 changes: 6 additions & 2 deletions 40ants-ci.asd
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@
:defsystem-depends-on ("40ants-asdf-system")
:pathname "src"
:depends-on ("40ants-ci/core"
"40ants-ci/ci"
"40ants-ci/changelog")
"40ants-ci/jobs/job"
"40ants-ci/jobs/docs"
"40ants-ci/jobs/linter"
"40ants-ci/jobs/critic"
"40ants-ci/jobs/run-tests"
"40ants-ci/jobs/autotag")
:description "A tool simplify continuous deployment for Common Lisp projects."
:homepage "https://40ants.com/ci/"
:source-control (:git "https://github.com/40ants/ci")
Expand Down
19 changes: 17 additions & 2 deletions src/changelog.lisp → docs/changelog.lisp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
(uiop:define-package #:40ants-ci/changelog
(uiop:define-package #:40ants-ci-docs/changelog
(:use #:cl)
(:import-from #:40ants-doc/changelog
#:defchangelog))
(in-package #:40ants-ci/changelog)
(in-package #:40ants-ci-docs/changelog)


(defchangelog (:ignore-words ("40ANTS-DOC"
Expand All @@ -11,6 +11,21 @@
"GITHUB_TOKEN"
"OSX")
:external-docs ("https://40ants.com/40ants-asdf-system/"))
(0.15.0 2024-03-02
"
New
===

* Now you can specify ENV argument to 40ANTS-CI:DEFWORKFLOW and any job. This should be an alist where keys are strings and values are evaluated during GitHub workflow generation phase. Read more in 40ANTS-CI-DOCS/INDEX::@ENV section.
* 40ANTS-CI/JOBS/AUTOTAG:AUTOTAG function now ignores TOKEN-PATTERN argument if ENV argument was given and has GITHUB_TOKEN value for whole job.

Backward incompatible changes
=============================

* When additional keyword arguments to 40ANTS-CI/STEPS/SH:SH function are given, they are transformed into env variables. Previously, their names were taken as is. Now they are uppercased and dash symbols are replaced with underscores.


")
(0.14.0 2024-02-25
"
Changed
Expand Down
Loading