Skip to content

Commit

Permalink
Workflows are updated using 40ants-ci.
Browse files Browse the repository at this point in the history
  • Loading branch information
svetlyak40wt committed Apr 4, 2021
1 parent abc843b commit 704cc38
Show file tree
Hide file tree
Showing 5 changed files with 152 additions and 91 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"name": "CI",
"on": {
"push": {
"branches": [
"master"
]
},
"pull_request": null,
"schedule": [
{
"cron": "0 10 * * 1"
}
]
},
"jobs": {
"run-tests": {
"runs-on": "ubuntu-latest",
"env": {
"OS": "ubuntu-latest",
"QUICKLISP_DIST": "quicklisp",
"LISP": "sbcl-bin"
},
"steps": [
{
"name": "Checkout Code",
"uses": "actions/checkout@v1"
},
{
"name": "Setup Common Lisp Environment",
"uses": "40ants/setup-lisp@v1",
"with": {
"asdf-system": "40ants-doc"
}
},
{
"name": "Run Tests",
"uses": "40ants/run-tests@v2",
"with": {
"asdf-system": "40ants-doc",
"coveralls-token": "${{ secrets.github_token }}"
}
}
]
}
}
}
68 changes: 40 additions & 28 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,40 @@
name: 'Docs'

on:
# This will run tests on pushes
# to master branch and every monday:
push:
branches:
- 'main'
- 'master'
# A branch to demo how docs are updated
# at https://github.com/svetlyak40wt/mgl-pax/pull/1
- 'mgl-pax-minimal'
schedule:
- cron: '0 10 * * 1'

jobs:
build-docs:
runs-on: ubuntu-latest

env:
LISP: sbcl-bin

steps:
- uses: actions/checkout@v1
- uses: 40ants/setup-lisp@v1
- uses: 40ants/build-docs@v1
with:
asdf-system: mgl-pax
{
"name": "DOCS",
"on": {
"push": {
"branches": [
"master"
]
}
},
"jobs": {
"build-docs": {
"runs-on": "ubuntu-latest",
"env": {
"OS": "ubuntu-latest",
"QUICKLISP_DIST": "quicklisp",
"LISP": "sbcl-bin"
},
"steps": [
{
"name": "Checkout Code",
"uses": "actions/checkout@v1"
},
{
"name": "Setup Common Lisp Environment",
"uses": "40ants/setup-lisp@v1",
"with": {
"asdf-system": "40ants-doc"
}
},
{
"name": "Build Docs",
"uses": "40ants/build-docs@v1",
"with": {
"asdf-system": "40ants-doc"
}
}
]
}
}
}
39 changes: 39 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"name": "LINTER",
"on": {
"pull_request": null
},
"jobs": {
"linter": {
"runs-on": "ubuntu-latest",
"env": {
"OS": "ubuntu-latest",
"QUICKLISP_DIST": "quicklisp",
"LISP": "sbcl-bin"
},
"steps": [
{
"name": "Checkout Code",
"uses": "actions/checkout@v1"
},
{
"name": "Setup Common Lisp Environment",
"uses": "40ants/setup-lisp@v1",
"with": {
"asdf-system": "40ants-doc"
}
},
{
"name": "Install SBLint",
"run": "qlot exec ros install cxxxr/sblint",
"shell": "bash"
},
{
"name": "Run Linter",
"run": "qlot exec sblint 40ants-doc.asd",
"shell": "bash"
}
]
}
}
}
63 changes: 0 additions & 63 deletions .github/workflows/test.yml

This file was deleted.

26 changes: 26 additions & 0 deletions src/ci.lisp
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
(defpackage #:40ants-doc/ci
(:use #:cl)
(:import-from #:40ants-ci/workflow
#:defworkflow)
(:import-from #:40ants-ci/jobs/linter)
(:import-from #:40ants-ci/jobs/run-tests)
(:import-from #:40ants-ci/jobs/docs))
(in-package 40ants-doc/ci)


(defworkflow linter
:on-pull-request t
:jobs ((40ants-ci/jobs/linter:linter)))


(defworkflow ci
:on-push-to "master"
:by-cron "0 10 * * 1"
:on-pull-request t
:jobs ((40ants-ci/jobs/run-tests:run-tests
:coverage t)))


(defworkflow docs
:on-push-to "master"
:jobs ((40ants-ci/jobs/docs:build-docs)))

0 comments on commit 704cc38

Please sign in to comment.