update elastic client companion and version api using atomic reference #214
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 uses actions that are not certified by GitHub. | |
| # They are provided by a third-party and are governed by | |
| # separate terms of service, privacy policy, and support | |
| # documentation. | |
| name: Build | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - '!main' | |
| # - '*' # matches every branch that doesn't contain a '/' | |
| # - '*/*' # matches every branch containing a single '/' | |
| # - '**' # matches every branch | |
| # - '!main' # excludes main | |
| pull_request: | |
| branches: | |
| - '**' | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| # runs-on: self-hosted | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Env | |
| run: | | |
| echo "JFROG_USER=${{ secrets.JFROG_USER }}" >> $GITHUB_ENV | |
| echo "JFROG_PASSWORD=${{ secrets.JFROG_PASSWORD }}" >> $GITHUB_ENV | |
| echo "GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_ENV | |
| echo "CODECOV_TOKEN=${{ secrets.CODECOV_TOKEN }}" >> $GITHUB_ENV | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| # cache: 'sbt' | |
| - name: Setup sbt launcher | |
| uses: sbt/setup-sbt@v1 | |
| - name: Set vm.max_map_count | |
| run: sudo sysctl -w vm.max_map_count=262144 | |
| - name: Cross Compile | |
| run: SBT_OPTS="-Xss4M -Xms1g -Xmx4g -Dfile.encoding=UTF-8" sbt + compile | |
| - name: Run tests | |
| run: SBT_OPTS="-Xss4M -Xms1g -Xmx4g -Dfile.encoding=UTF-8" sbt compile test | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Env | |
| run: | | |
| echo "JFROG_USER=${{ secrets.JFROG_USER }}" >> $GITHUB_ENV | |
| echo "JFROG_PASSWORD=${{ secrets.JFROG_PASSWORD }}" >> $GITHUB_ENV | |
| echo "GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_ENV | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| # cache: 'sbt' | |
| - name: Setup sbt launcher | |
| uses: sbt/setup-sbt@v1 | |
| - name: Checks | |
| run: sbt headerCheck scalafmtSbtCheck scalafmtCheck test:scalafmtCheck |