Skip to content

CI

CI #242

Workflow file for this run

name: CI
on:
pull_request:
paths-ignore:
- '**.md'
push:
branches:
- master
paths-ignore:
- '**.md'
workflow_dispatch:
jobs:
ci:
name: ${{ matrix.name }}-${{ matrix.init-script.label }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2022, ubuntu-22.04]
init-script:
- label: 'init-script'
path: './.github/workflows/scripts/init.sql'
- label: 'no-init-script'
path: ''
include:
- os: windows-2022
name: Windows
- os: ubuntu-22.04
name: Linux
fail-fast: false
steps:
- name: Checkout
uses: actions/[email protected]
- name: Azure login
if: matrix.name == 'Windows'
uses: azure/[email protected]
with:
creds: ${{ secrets.AZURE_ACI_CREDENTIALS }}
- name: Run
uses: ./
with:
connection-string-name: OracleConnectionString
tag: setup-oracle-action
init-script: ${{ matrix.init-script.path }}
registry-username: ${{ secrets.DOCKERHUB_USERNAME }}
registry-password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Validate
shell: pwsh
run: |
echo "OracleConnectionString = $($Env:OracleConnectionString)"
if ( $Env:OracleConnectionString -le 0 ) {
throw "Environment variable 'OracleConnectionString' not set."
}