Update Fibonacci.java #1
This file contains hidden or 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
| name: Java CI | |
| on: [push] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4.5.0 | |
| with: | |
| java-version: '17' | |
| distribution: 'corretto' | |
| - name: display java version | |
| run: java --version | |
| - name: Build with Maven | |
| run: mvn --batch-mode -DskipTests package | |
| - name: Run Tests | |
| run: mvn test | |
| - name: Run JAR | |
| run: java -jar target/*.jar 10 |