diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml new file mode 100644 index 0000000..6a314a0 --- /dev/null +++ b/.github/workflows/static.yml @@ -0,0 +1,25 @@ +name: Java Test + +on: + push: + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up JDK 21 + uses: actions/setup-java@v4 + with: + java-version: '21' + distribution: 'temurin' + + - name: Compile Java sources + run: javac -d bin $(find src -name "*.java") + + - name: Run program + run: java -cp bin Main \ No newline at end of file