diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000000..075354765b --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,52 @@ +name: build + +on: + push: + paths-ignore: + - 'doc/**' + - 'docs/**' + - '*.md' + - '*.yml' + branches: + - series/7.x + +jobs: + scala-2_12: + runs-on: ubuntu-latest + steps: + - name: checkout the repo + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Set up JDK + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 11 + + - name: Launch elastic docker + run: docker run -d -it -p 39227:9200 -p 39337:9300 -e "discovery.type=single-node" -v /home/runner/work/elastic4s/elastic4s/elastic4s-tests/src/test/resources/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml docker.elastic.co/elasticsearch/elasticsearch:7.17.25 + + - name: run tests + run: sbt ++2.12.20 test + + scala-2_13: + runs-on: ubuntu-latest + steps: + - name: checkout the repo + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Set up JDK + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 11 + + - name: Launch elastic docker + run: docker run -d -it -p 39227:9200 -p 39337:9300 -e "discovery.type=single-node" -v /home/runner/work/elastic4s/elastic4s/elastic4s-tests/src/test/resources/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml docker.elastic.co/elasticsearch/elasticsearch:7.17.25 + + - name: run tests + run: sbt ++2.13.15 test diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml deleted file mode 100644 index 6f708a6c28..0000000000 --- a/.github/workflows/master.yml +++ /dev/null @@ -1,91 +0,0 @@ -name: master - -on: - push: - paths-ignore: - - 'doc/**' - - 'docs/**' - - '*.md' - - '*.yml' - branches: - - master - - release/* - -jobs: - scala-2_12: - runs-on: ubuntu-latest - steps: - - name: checkout the repo - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - - name: Set up JDK - uses: actions/setup-java@v1 - with: - java-version: 11 - - - name: Launch elastic docker - run: docker run -d -it -p 39227:9200 -p 39337:9300 -e "discovery.type=single-node" -v /home/runner/work/elastic4s/elastic4s/elastic4s-tests/src/test/resources/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml docker.elastic.co/elasticsearch/elasticsearch:7.17.1 - - - name: run tests - run: sbt ++2.12.12 test - - - name: Import GPG key - id: import_gpg - uses: crazy-max/ghaction-import-gpg@v3 - with: - gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} - passphrase: ${{ secrets.PGP_PASSPHRASE }} - - - name: GPG user IDs - run: | - echo "fingerprint: ${{ steps.import_gpg.outputs.fingerprint }}" - echo "keyid: ${{ steps.import_gpg.outputs.keyid }}" - echo "name: ${{ steps.import_gpg.outputs.name }}" - echo "email: ${{ steps.import_gpg.outputs.email }}" - - - name: publish snapshot - run: sbt ++2.12.12 publish - env: - OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} - OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} - - scala-2_13: - runs-on: ubuntu-latest - steps: - - name: checkout the repo - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - - name: Set up JDK - uses: actions/setup-java@v1 - with: - java-version: 11 - - - name: Launch elastic docker - run: docker run -d -it -p 39227:9200 -p 39337:9300 -e "discovery.type=single-node" -v /home/runner/work/elastic4s/elastic4s/elastic4s-tests/src/test/resources/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml docker.elastic.co/elasticsearch/elasticsearch:7.17.1 - - - name: run tests - run: sbt ++2.13.4 test - - - name: Import GPG key - id: import_gpg - uses: crazy-max/ghaction-import-gpg@v3 - with: - gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} - passphrase: ${{ secrets.PGP_PASSPHRASE }} - - - name: GPG user IDs - run: | - echo "fingerprint: ${{ steps.import_gpg.outputs.fingerprint }}" - echo "keyid: ${{ steps.import_gpg.outputs.keyid }}" - echo "name: ${{ steps.import_gpg.outputs.name }}" - echo "email: ${{ steps.import_gpg.outputs.email }}" - - - name: publish snapshot - run: sbt ++2.13.4 publish - env: - OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} - OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}