Skip to content

Commit

Permalink
Merge pull request #205 from liquibase/fix-nightly-builds
Browse files Browse the repository at this point in the history
DAT-16080 DevOps :: Extension Nightly Builds Failing
  • Loading branch information
Alejandro Alvarez authored Oct 20, 2023
2 parents 1b980c8 + 61fd4bc commit 45bd5d3
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 11 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/attach-artifact-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@ on:

jobs:
attach-artifact-to-release:
uses: liquibase/build-logic/.github/workflows/[email protected]
secrets: inherit
uses: liquibase/build-logic/.github/workflows/[email protected]
secrets: inherit
with:
extraCommand: mvn install:install-file -Dfile=lib/GoogleBigQueryJDBC42.jar -DgroupId=com.simba.googlebigquery.jdbc -DartifactId=GoogleBigQueryJDBC42 -Dversion=4.2 -Dpackaging=jar
5 changes: 4 additions & 1 deletion .github/workflows/build-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@
name: "Nightly build"

on:
workflow_dispatch:
schedule:
- cron: '0 7 * * 1-5'

jobs:
nightly-build:
uses: liquibase/build-logic/.github/workflows/os-extension-test.yml@v0.4.8
uses: liquibase/build-logic/.github/workflows/os-extension-test.yml@v0.5.2
with:
nightly: true
extraCommand: mvn install:install-file -Dfile=lib/GoogleBigQueryJDBC42.jar -DgroupId=com.simba.googlebigquery.jdbc -DartifactId=GoogleBigQueryJDBC42 -Dversion=4.2 -Dpackaging=jar
os: '["ubuntu-latest"]'
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ on:

jobs:
create-release:
uses: liquibase/build-logic/.github/workflows/create-release.yml@v0.4.8
uses: liquibase/build-logic/.github/workflows/create-release.yml@v0.5.2
secrets: inherit
4 changes: 3 additions & 1 deletion .github/workflows/release-published.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@ on:

jobs:
release:
uses: liquibase/build-logic/.github/workflows/extension-release-published.yml@v0.4.8
uses: liquibase/build-logic/.github/workflows/extension-release-published.yml@v0.5.2
secrets: inherit
with:
extraCommand: mvn install:install-file -Dfile=lib/GoogleBigQueryJDBC42.jar -DgroupId=com.simba.googlebigquery.jdbc -DartifactId=GoogleBigQueryJDBC42 -Dversion=4.2 -Dpackaging=jar
7 changes: 5 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@ on:

jobs:
build-test:
uses: liquibase/build-logic/.github/workflows/[email protected]
secrets: inherit
uses: liquibase/build-logic/.github/workflows/[email protected]
secrets: inherit
with:
extraCommand: mvn install:install-file -Dfile=lib/GoogleBigQueryJDBC42.jar -DgroupId=com.simba.googlebigquery.jdbc -DartifactId=GoogleBigQueryJDBC42 -Dversion=4.2 -Dpackaging=jar
os: '["ubuntu-latest"]'
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ Add files from the archive to the liquibase lib directory.

### Liquibase BigQuery extension

Before building the extension be sure to locally install the Simba driver as follows:

```bash
mvn install:install-file -Dfile=lib/GoogleBigQueryJDBC42.jar -DgroupId=com.simba.googlebigquery.jdbc -DartifactId=GoogleBigQueryJDBC42 -Dversion=4.2 -Dpackaging=jar
````

Build this project with `mvn` or download the jar file
corresponding to the latest release and put it
into `liquibase/lib` lib directory.
Expand Down
6 changes: 2 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-parent-pom</artifactId>
<version>0.2.2</version> <!-- Replace with the desired version -->
<version>0.2.6</version> <!-- Replace with the desired version -->
</parent>

<groupId>org.liquibase.ext</groupId>
Expand Down Expand Up @@ -57,8 +57,6 @@
<groupId>com.simba.googlebigquery.jdbc</groupId>
<artifactId>GoogleBigQueryJDBC42</artifactId>
<version>4.2</version>
<scope>system</scope>
<systemPath>${basedir}/lib/GoogleBigQueryJDBC42.jar</systemPath>
</dependency>
<dependency>
<groupId>com.google.cloud</groupId>
Expand Down Expand Up @@ -128,4 +126,4 @@
</plugin>
</plugins>
</build>
</project>
</project>

0 comments on commit 45bd5d3

Please sign in to comment.