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: HQL CI with Gradle | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout git | |
| uses: actions/checkout@v3 | |
| - name: Set up JDK | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: 17 | |
| distribution: temurin | |
| - name: Set up node | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 18 | |
| - name: Build and run application | |
| working-directory: sample-app | |
| run: | | |
| sh ../db/start_postgres.sh | |
| ./gradlew build | |
| nohup java -jar -Dspring.profiles.active=demo build/libs/sample-app.jar & | |
| sleep 1 | |
| - name: Run jest integration tests | |
| working-directory: tutorial+test | |
| run: | | |
| npm install | |
| npm run test |