fix tests and return some retry behavior for high throughput scenarios #7
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: Build Website | |
| on: | |
| push: | |
| branches: [ 'develop' ] | |
| paths: | |
| - spellsource-web/** | |
| jobs: | |
| build-and-deploy-website: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| lfs: true # TODO still needed just for website? | |
| - run: git lfs checkout | |
| - uses: actions/setup-java@v4 | |
| with: | |
| java-version: '21' | |
| distribution: oracle | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 18 | |
| - uses: gradle/actions/wrapper-validation@v3 | |
| - name: Test with Gradle | |
| run: ./gradlew --no-parallel :spellsource-web:yarnRunTest | |
| - name: Log in to the Container registry | |
| uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Set Project Version | |
| run: | | |
| COMMIT_SHA=$(git rev-parse --short=7 HEAD) | |
| TIMESTAMP=$(date +%s) | |
| echo "PROJECT_VERSION=${COMMIT_SHA}-${TIMESTAMP}" >> $GITHUB_ENV | |
| - name: Build Website Image | |
| run: ./gradlew spellsource-web:githubDockerPush | |
| env: | |
| PROJECT_VERSION: ${{ env.PROJECT_VERSION }} |