File tree Expand file tree Collapse file tree
components/src/main/java/com/opensourcewithslu/components/controllers
components/outputComponents
main/java/com/opensourcewithslu/outputdevices
test/java/com/opensourcewithslu/outputdevices Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,25 +3,26 @@ name: build adocs
33on :
44 push :
55 branches :
6- - main
7- - develop
6+ - develop
7+ pull_request :
8+ branches :
9+ - main
10+ - develop
11+ workflow_call :
812
913jobs :
1014 adoc_build :
1115 runs-on : ubuntu-latest
1216 name : ASCII DOC build
1317 steps :
14- - name : Checkout code
15- uses : actions/checkout@v2
16- - name : Get build container
17- id : adocbuild
18- uses : tonynv/asciidoctor-action@master
19- with :
20- program : " ./gradlew asciidoctor"
21- - name : Deploy docs to ghpages
22- uses : peaceiris/actions-gh-pages@v3
23- with :
24- deploy_key : ${{ secrets.ACTIONS_DEPLOY_KEY }}
25- publish_branch : gh-pages
26- publish_dir : ./pi4micronaut-utils/build/docs/asciidoc/
27-
18+ - name : Checkout code
19+ uses : actions/checkout@v4
20+ - name : Get build container
21+ uses : tonynv/asciidoctor-action@v2
22+ with :
23+ program : " ./gradlew asciidoctor"
24+ - name : Upload AsciiDoc output
25+ uses : actions/upload-artifact@v4
26+ with :
27+ name : asciidoc-output
28+ path : pi4micronaut-utils/build/docs/asciidoc/
Original file line number Diff line number Diff line change 1+ name : Publish AsciiDoc
2+ permissions :
3+ contents : read
4+ on :
5+ workflow_call :
6+ secrets :
7+ ACTIONS_DEPLOY_KEY :
8+ required : true
9+
10+ jobs :
11+ build :
12+ uses : ./.github/workflows/asciidoc-build.yml
13+ adoc_publish :
14+ needs : build
15+ runs-on : ubuntu-latest
16+ name : ASCII DOC publish
17+ steps :
18+ - name : Checkout code
19+ uses : actions/checkout@v4
20+ - name : Download AsciiDoc output
21+ uses : actions/download-artifact@v4
22+ with :
23+ name : asciidoc-output
24+ path : pi4micronaut-utils/build/docs/asciidoc/
25+ - name : Deploy docs to ghpages
26+ uses : peaceiris/actions-gh-pages@v4
27+ with :
28+ deploy_key : ${{ secrets.ACTIONS_DEPLOY_KEY }}
29+ publish_branch : gh-pages
30+ publish_dir : ./pi4micronaut-utils/build/docs/asciidoc/
31+ keep_files : true
Original file line number Diff line number Diff line change @@ -4,10 +4,7 @@ permissions:
44 pages : write
55 id-token : write
66on :
7- push :
8- branches :
9- - main
10- - develop
7+ workflow_call :
118
129jobs :
1310 build :
@@ -43,14 +40,12 @@ jobs:
4340 with :
4441 name : javadoc
4542 path : ./javadoc
46- retention-days : 1
4743 - name : Deploy
4844 uses : peaceiris/actions-gh-pages@v4
49- if : github.ref == 'refs/heads/develop'
5045 with :
5146 github_token : ${{ secrets.GITHUB_TOKEN }}
5247 publish_dir : ./javadoc
5348 destination_dir : javadoc
5449 keep_files : true
5550 user_name : ' github-actions[bot]'
56- user_email : ' github-actions[bot]@users.noreply.github.com'
51+ user_email : ' github-actions[bot]@users.noreply.github.com'
Original file line number Diff line number Diff line change 1+ name : Publish Documentation
2+ permissions :
3+ contents : write
4+ on :
5+ push :
6+ branches :
7+ - main
8+
9+ jobs :
10+ publish-asciidoc :
11+ uses : ./.github/workflows/asciidoc-publish.yml
12+ secrets :
13+ ACTIONS_DEPLOY_KEY : ${{ secrets.ACTIONS_DEPLOY_KEY }}
14+
15+ publish-javadoc :
16+ needs : publish-asciidoc
17+ uses : ./.github/workflows/javadoc-gh-pages.yml
Original file line number Diff line number Diff line change 55import io .micronaut .http .annotation .*;
66import jakarta .inject .Named ;
77import java .io .File ;
8+ import org .slf4j .Logger ;
9+ import org .slf4j .LoggerFactory ;
810
911//tag::ex[]
1012@ Controller ("/passive-buzzer" )
1113public class PassiveBuzzerController {
14+ private static final Logger log = LoggerFactory .getLogger (PassiveBuzzerController .class );
1215 private final PassiveBuzzerHelper passiveBuzzerHelper ;
1316
1417 protected int passBuzzFreq = 440 ;
@@ -44,9 +47,7 @@ public void disablePassiveBuzzer(){
4447 */
4548 @ Get ("/showFreq" )
4649 public void passiveBuzzerFreq (){
47-
48- passiveBuzzerHelper .getFrequency ();
49-
50+ log .info (String .valueOf (passiveBuzzerHelper .getFrequency ()));
5051 }
5152
5253 /**
Original file line number Diff line number Diff line change @@ -41,11 +41,11 @@ dependencies {
4141 testImplementation ' org.junit.jupiter:junit-jupiter-api:5.5.1'
4242 testImplementation ' org.junit.jupiter:junit-jupiter'
4343 testRuntimeOnly ' org.junit.platform:junit-platform-launcher'
44- testImplementation(" org.mockito:mockito-core:5.+ " )
44+ testImplementation(" org.mockito:mockito-core:5.18.0 " )
4545 testImplementation(platform(" org.junit:junit-bom:5.11.0" ))
4646 testRuntimeOnly(" org.junit.jupiter:junit-jupiter-engine" )
4747 testRuntimeOnly(" org.junit.vintage:junit-vintage-engine" )
48-
48+ testImplementation( " org.mockito:mockito-junit-jupiter:5.18.0 " )
4949}
5050
5151application {
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ image::fanCircuit.png[]
3636
3737===== Schematic Diagram
3838
39- image::fanSchmetic .png[]
39+ image::fanSchematic .png[]
4040
4141===== YAML Configuration
4242
You can’t perform that action at this time.
0 commit comments