GitHub Action
Setup-Oracle-SQLcl
Sets up the Oracle SQLcl command line tool. This action locates
a given version of Oracle SQLcl, downloads it, and configures the PATH
environment variable so that SQLcl can be invoked via sql
.
An environment variable SQLCL_HOME
also points to the location where the given SQLcl version was installed.
Supported platforms:
-
Linux
-
MacOS
-
Windows
Following inputs may be used as step.with
keys:
Name | Required | Default | Description |
---|---|---|---|
version |
latest |
A valid version of SQLcl from the download site. |
|
setup-java-version |
17 |
Automatically setup Oracle JDK with the chosen version. Set to |
ℹ️
|
If you decide to skip the automatic Java setup then you’ll be responsible for configuring Java with version 11 as a minimum.
We recommend using actions/setup-java.
|
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: gvenzl/setup-oracle-sqlcl@v1
- name: Run SQLcl
run: |
${SQLCL_HOME}/bin/sql <arguments>
The full list of supported SQLcl versions can be found here.
Use version: latest
(default & recommended) to always pull the latest release of SQLcl or use an explicit version of SQLcl to pin it for reproducible builds.