Repository navigation
Add CI: compile + run real test suite on push #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: CI | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: "temurin" | |
| java-version: "17" | |
| - name: Compile | |
| run: | | |
| javac -d out $(find src/main/java -name "*.java") | |
| javac -cp out -d out $(find src/test/java -name "*.java") | |
| - name: Run tests | |
| run: | | |
| java -cp out dev.kasapdev.simplecache.LruCacheTest |