-
-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
433 changed files
with
12,282 additions
and
13,792 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,15 +8,15 @@ jobs: | |
|
||
steps: | ||
# ================================================================================================================ | ||
- name: JDK 11 Setup | ||
uses: actions/setup-java@v2 | ||
- name: JDK 17 Setup | ||
uses: actions/setup-java@v3.3.0 | ||
with: | ||
distribution: 'adopt' | ||
java-version: '11' | ||
distribution: 'temurin' | ||
java-version: '17' | ||
|
||
# ================================================================================================================ | ||
- name: Retrieve the sources | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
|
||
# ================================================================================================================ | ||
- name: Build, run tests and deploy locally | ||
|
@@ -31,7 +31,10 @@ jobs: | |
run: | | ||
bash <(curl -Ls https://coverage.codacy.com/get.sh) report \ | ||
--project-token ${{ secrets.CODACY_API_TOKEN }} \ | ||
-r spring-boot-starter/autoconfigure/target/site/jacoco/jacoco.xml | ||
--language Java \ | ||
--coverage-reports spring-boot-starter/autoconfigure/target/site/jacoco/jacoco.xml \ | ||
--coverage-reports spring-boot-starter-test/autoconfigure/target/site/jacoco/jacoco.xml \ | ||
--coverage-reports spring-boot-starter-api/spring-boot-starter-api-graphql/autoconfigure/target/site/jacoco/jacoco.xml | ||
# ================================================================================================================ | ||
- name: Test Cassandre trading bot maven archetype - basic strategy | ||
|
@@ -47,17 +50,35 @@ jobs: | |
mvn -f archetype-test-basic/pom.xml test | ||
# ================================================================================================================ | ||
- name: Test Cassandre trading bot maven archetype - basic ta4j strategy | ||
- name: Install Go to generate the graphQL documentation with gqldoc | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: '^1.17.3' | ||
|
||
# ================================================================================================================ | ||
# - name: Add the GraphQL schema and its documentation to the website | ||
# run: | | ||
# cp spring-boot-starter-api/spring-boot-starter-api-graphql/autoconfigure/src/main/resources/schema/*.graphqls docs/docs/.vuepress/public/api/graphql/definition | ||
# go install github.com/Code-Hex/gqldoc/cmd/[email protected] | ||
# gqldoc -s "docs/docs/.vuepress/public/api/graphql/definition/*.graphqls" -o ./docs/docs/learn/graphql-api-documentation | ||
|
||
# ================================================================================================================ | ||
- name: Install vuepress, set release number, and build the website | ||
run: | | ||
mvn -B archetype:generate \ | ||
-DarchetypeGroupId=tech.cassandre.trading.bot \ | ||
-DarchetypeArtifactId=cassandre-trading-bot-spring-boot-starter-basic-ta4j-archetype \ | ||
-DarchetypeVersion=${{ steps.maven.outputs.version }} \ | ||
-DgroupId=com.example \ | ||
-DartifactId=archetype-test-ta4j-basic \ | ||
-Dversion=1.0-SNAPSHOT \ | ||
-Dpackage=com.example | ||
mvn -f archetype-test-ta4j-basic/pom.xml test | ||
yarn add -D vuepress@next | ||
find . -type f -name "*.md" -exec sed -i 's/CASSANDRE_LATEST_RELEASE/${{ steps.maven.outputs.version }}/g' {} \; | ||
yarn --cwd docs install | ||
yarn --cwd docs docs:build docs | ||
# ================================================================================================================ | ||
- name: Deploy the website to github pages | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: gh-pages | ||
target-folder: beta | ||
folder: docs/docs/.vuepress/dist | ||
commit-message: "Beta website deployment" | ||
clean: false | ||
|
||
# ================================================================================================================ | ||
# Testing that the graphql starter is working correctly. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,24 +5,30 @@ on: | |
branches: | ||
- "development" | ||
|
||
permissions: | ||
id-token: "write" | ||
contents: "write" | ||
packages: "write" | ||
pull-requests: "read" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# ================================================================================================================ | ||
- name: JDK 11 Setup | ||
uses: actions/setup-java@v2 | ||
- name: JDK 17 Setup | ||
uses: actions/setup-java@v3.3.0 | ||
with: | ||
distribution: 'adopt' | ||
java-version: '11' | ||
distribution: 'temurin' | ||
java-version: '17' | ||
server-id: ossrh | ||
server-username: MAVEN_USERNAME | ||
server-password: MAVEN_PASSWORD | ||
|
||
# ================================================================================================================ | ||
- name: Retrieve the sources | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
|
||
# ================================================================================================================ | ||
- name: GPG Setup | ||
|
@@ -46,23 +52,24 @@ jobs: | |
# ================================================================================================================ | ||
- name: Retrieve the latest release published on Github | ||
uses: pozetroninc/github-action-get-latest-release@v0.5.0 | ||
uses: pozetroninc/github-action-get-latest-release@v0.6.0 | ||
id: getLatestRelease | ||
with: | ||
repository: ${{ github.repository }} | ||
|
||
# ================================================================================================================ | ||
- name: Install Go to generate the graphQL documentation with gqldoc | ||
uses: actions/setup-go@v2 | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: '^1.17.3' | ||
|
||
# ================================================================================================================ | ||
- name: Add the GraphQL schema and its documentation to the website | ||
run: | | ||
cp spring-boot-starter-api/spring-boot-starter-api-graphql/autoconfigure/src/main/resources/schema/*.graphqls docs/docs/.vuepress/public/api/graphql/definition | ||
go install github.com/Code-Hex/gqldoc/cmd/[email protected] | ||
gqldoc -s "docs/docs/.vuepress/public/api/graphql/definition/*.graphqls" -o ./docs/docs/learn/graphql-api-documentation | ||
go install github.com/Code-Hex/gqldoc/cmd/[email protected] | ||
gqldoc -s "docs/docs/.vuepress/public/api/graphql/definition/*.graphqls" -o ./docs/docs/tutorial/graphql-api-documentation | ||
gqldoc -s "docs/docs/.vuepress/public/api/graphql/definition/*.graphqls" -o ./docs/docs/fr/tutorial/graphql-api-documentation | ||
# ================================================================================================================ | ||
- name: Install vuepress, set release number, and build the website | ||
|
@@ -74,9 +81,9 @@ jobs: | |
# ================================================================================================================ | ||
- name: Deploy the website to github pages | ||
uses: JamesIves/github-pages-deploy-action@4.1.4 | ||
uses: JamesIves/github-pages-deploy-action@v4.3.3 | ||
with: | ||
branch: gh-pages | ||
folder: docs/docs/.vuepress/dist | ||
commit-message: "Website update" | ||
commit-message: "Website deployment" | ||
clean: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,18 +17,18 @@ jobs: | |
|
||
steps: | ||
# ================================================================================================================ | ||
- name: JDK 11 Setup | ||
uses: actions/setup-java@v2 | ||
- name: JDK 17 Setup | ||
uses: actions/setup-java@v3.3.0 | ||
with: | ||
distribution: 'adopt' | ||
java-version: '11' | ||
distribution: 'temurin' | ||
java-version: '17' | ||
server-id: ossrh | ||
server-username: MAVEN_USERNAME | ||
server-password: MAVEN_PASSWORD | ||
|
||
# ================================================================================================================ | ||
- name: Retrieve the sources | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
|
||
# ================================================================================================================ | ||
- name: GPG Setup | ||
|
@@ -80,7 +80,7 @@ jobs: | |
# ================================================================================================================ | ||
- name: Publish the announce on Discord | ||
continue-on-error: true | ||
uses: Ilshidur/[email protected].0 | ||
uses: Ilshidur/[email protected].2 | ||
env: | ||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
# Web site management. | ||
[https://trading-bot.cassandre.tech/](https://trading-bot.cassandre.tech/) | ||
# Cassandre trading bot | ||
|
||
## Run the website | ||
``` | ||
cd docs | ||
yarn docs:dev | ||
``` | ||
## How to run documentation | ||
`yarn docs:dev` |
Oops, something went wrong.