Generate update set on conflict for upserts (#145) #628
Workflow file for this run
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: | |
tags: [ 'v*' ] | |
branches: [ 'main' ] | |
pull_request: | |
branches: [ 'main' ] | |
jobs: | |
scalafmt: | |
timeout-minutes: 10 | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, 'ci skip')" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: bleep-build/[email protected] | |
- uses: coursier/cache-action@v6 | |
with: | |
extraFiles: bleep.yaml | |
- name: Scalafmt Check | |
run: bleep fmt --check | |
build-scala: | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
if: "!contains(github.event.head_commit.message, 'ci skip')" | |
strategy: | |
fail-fast: false | |
matrix: | |
scala-version: [213, 3] | |
postgres-version: [12, 16] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: bleep-build/[email protected] | |
- uses: coursier/cache-action@v6 | |
with: | |
extraFiles: bleep.yaml | |
- name: Start up Postgres | |
env: | |
PG_MAJOR: ${{ matrix.postgres-version }} | |
run: docker compose up -d | |
- name: Run tests | |
env: | |
CI: true | |
run: | | |
bleep compile jvm${{ matrix.scala-version }} | |
bleep test jvm${{ matrix.scala-version }} | |
build-scala212: | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
if: "!contains(github.event.head_commit.message, 'ci skip')" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: bleep-build/[email protected] | |
- uses: coursier/cache-action@v6 | |
with: | |
extraFiles: bleep.yaml | |
- name: Compile for 2.12 | |
run: bleep compile typo@jvm212 | |
build-docs: | |
timeout-minutes: 20 | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, 'ci skip')" | |
env: | |
PG_MAJOR: 14 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: bleep-build/[email protected] | |
- uses: coursier/cache-action@v6 | |
with: | |
extraFiles: bleep.yaml | |
- name: Start up Postgres | |
run: docker compose up -d | |
- name: Build docs | |
run: | | |
bleep generate-docs | |
release: | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
needs: [ scalafmt, build-scala ] | |
if: "startsWith(github.ref, 'refs/tags/v')" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: bleep-build/[email protected] | |
- uses: coursier/cache-action@v6 | |
with: | |
extraFiles: bleep.yaml | |
- id: get_version | |
uses: battila7/get-version-action@v2 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Release | |
run: bleep --dev publish | |
env: | |
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} | |
PGP_SECRET: ${{ secrets.PGP_SECRET }} | |
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | |
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | |
- name: Create github release | |
uses: softprops/action-gh-release@v1 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
name: "${{ steps.get_version.outputs.version-without-v }}" | |
prerelease: false | |
generate_release_notes: true | |
permissions: | |
contents: write |