feat: search posts and users (client side) #35
This file contains 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 | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up our JDK environment | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: 19 | |
- name: Install dependencies and run tests | |
run: ./gradlew jvmTest koverXmlReport | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
deploy: | |
runs-on: ubuntu-latest | |
needs: test | |
if: github.ref == 'refs/heads/main' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up our JDK environment | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: 19 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: nathanfallet | |
password: ${{ secrets.DOCKER_HUB_PASSWORD }} | |
- name: Build and publish to Docker Hub | |
run: ./gradlew publishImage |