Skip to content

Commit

Permalink
CI/CD quickstart (#2777)
Browse files Browse the repository at this point in the history
* Action to start CI/CD pipeline and minor change to Maven artefact resolving

* Set caching up for Maven; use maven-setup-action action, instead of apt-get

* Include action for spellcheck

* Modigy CodeCov element

* New additions to the wordlist file

* Polishing, removing new lines that are not necessary

* Wrong branch name specified
  • Loading branch information
tishun authored Mar 25, 2024
1 parent 6574233 commit 8c1529a
Show file tree
Hide file tree
Showing 5 changed files with 177 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/spellcheck-settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
matrix:
- name: Markdown
expect_match: false
apsell:
lang: en
d: en_US
ignore-case: true
dictionary:
wordlists:
- .github/wordlist.txt
output: wordlist.dic
pipeline:
- pyspelling.filters.markdown:
markdown_extensions:
- markdown.extensions.extra:
- pyspelling.filters.html:
comments: false
attributes:
- alt
ignores:
- ':matches(code, pre)'
- code
- pre
- blockquote
- img
sources:
- '*.md'
- 'docs/**'
75 changes: 75 additions & 0 deletions .github/wordlist.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
!!!Spelling check failed!!!
Observability
CRaC
JVM
https
io
stackoverflow
gitter
im
Javadoc
api
BZMPOP
ZMPOP
FCALL
Lua
redis
SlotHash
instantiation
FailOver
takeOver
ReplicaTopologyProvider
SimpleBatcher
hostname
NodeTopologyView
RedisURI
SslVerifyMode
withSsl
SMISMEMBER
readonly
Eval
lua
zrevrangestorebylex
zrevrangestorebyscore
XTrimArgs
URI
CompositeArgument
arg
md
wg
SSL
RedisLabs
Memorystore
Elasticache
CamelCased
zrangebyscore
zrangebyscoreWithScores
Gradle
http
LettuceDriver
Codecs
JSON
UTF
CDI
Pipelining
netty
scalable
deserialized
enum
SetArgs
param
README
sscanMultiple
ReadFrom
dynamicRefreshSources
pingBeforeActivateConnection
StatefulRedisClusterPubSubConnectionImpl's
NPE
codec
javadoc
NullPointerException
RedisObservation
github
runtime
transactional
Github
59 changes: 59 additions & 0 deletions .github/workflows/cicd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: CI / CD Pipeline
on:
push:
paths-ignore:
- 'docs/**'
- '**/*.md'
- '**/*.rst'
branches:
- main
- '[0-9].*'
pull_request:
branches:
- main
- '[0-9].*'
schedule:
- cron: '0 1 * * *' # nightly build
workflow_dispatch:

jobs:

build:
name: Build and Test
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v4
- name: Set Java up in the runner
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'temurin'
cache: 'maven'
- name: Setup Maven
uses: s4u/[email protected]
with:
java-version: 8
- name: Install missing dependencies to container
run: |
sudo apt update
sudo apt install -y stunnel make git gcc
- name: Maven offline
run: |
mvn -q dependency:go-offline
- name: Clean environment
run: |
make cleanup
env:
JVM_OPTS: -Xmx3200m
TERM: dumb
- name: Run tests
run: |
make test-coverage
env:
JVM_OPTS: -Xmx3200m
TERM: dumb
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
14 changes: 14 additions & 0 deletions .github/workflows/spellcheck.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Spellcheck Action
on:
pull_request:
jobs:
check-spelling:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Check Spelling
uses: rojopolis/[email protected]
with:
config_path: .github/spellcheck-settings.yml
task_name: Markdown
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@
</os>
</activation>
<properties>
<os.detected.classifier>linux-aarch64-fedora</os.detected.classifier>
<os.detected.classifier>linux-aarch_64-fedora</os.detected.classifier>
</properties>
</profile>

Expand Down

0 comments on commit 8c1529a

Please sign in to comment.