Fix "No such file" error by restoring working directory #201
Workflow file for this run
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
| # This workflow runs tests with a fresh Loom build from shipilev.net | |
| # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven | |
| name: Loom Build Tests | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| pull_request: | |
| branches: [ "master" ] | |
| schedule: | |
| # Run nightly at 2:00 AM UTC to detect breaking changes in Loom JDK | |
| - cron: '0 2 * * *' | |
| jobs: | |
| test-with-loom: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: shipilev/openjdk:loom | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install Maven | |
| run: | | |
| apt-get update | |
| apt-get install -y maven | |
| - name: Verify Java version | |
| run: | | |
| java -version | |
| - name: Verify Java version in Maven | |
| run: | | |
| mvn --version | |
| - name: Cache Maven packages | |
| uses: actions/cache@v5 | |
| with: | |
| path: /github/home/.m2 | |
| key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: ${{ runner.os }}-m2 | |
| - name: Build with Maven | |
| run: mvn -B verify --file pom.xml -DargLine="--enable-preview" -P '!dev' |