Skip to content

chore(deps) Update all non-major dependencies #1253

chore(deps) Update all non-major dependencies

chore(deps) Update all non-major dependencies #1253

Workflow file for this run

name: 🧪 test
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
services:
ldap:
image: bitnami/openldap
ports:
- 389:1389
- 636:1636
steps:
- name: 💾 Checkout
uses: actions/checkout@v4
- name: 🧹 Cleanup apt list
uses: christopherpickering/no-azure-action@v1.1.0
- name: ✅ Check LDAP is Up
run: |
sudo apt install ldap-utils
ldapsearch -x -b "dc=example,dc=org" -D "cn=admin,dc=example,dc=org" -w "adminpassword"
- name: 🐍 Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: 🎶 Setup Poetry
uses: snok/install-poetry@v1
- name: 📥 Install
run: poetry install
- name: 📇 Install Microsoft ODBC
run: sudo ACCEPT_EULA=Y apt-get install msodbcsql18 -y
- name: 📇 Install Sql Server
uses: potatoqualitee/mssqlsuite@v1.5.1
with:
install: sqlengine, sqlpackage
- name: 💽 Setup Database
run: |
sqlcmd -S localhost -U sa -P dbatools.I0 -d Master -i LDAPDatabaseCreationScript.sql
- name: 🧪 Run Test
run: |
poetry run tox -e test
env:
LDAP_HOST: ldap://localhost:389
LDAP_USERNAME: cn=admin,dc=example,dc=org
LDAP_PASSWORD: adminpassword
DATABASE: DRIVER={ODBC Driver 18 for SQL Server};SERVER=localhost;DATABASE=LDAP;UID=sa;PWD=dbatools.I0;TrustServerCertificate=YES
AD_DOMAIN: ''
LDAP_BASE: dc=example,dc=org
LDAP_USER_SEARCH: (objectClass=inetOrgPerson)
LDAP_GROUP_SEARCH: (objectClass=groupOfNames)
LDAP_USE_SSL: false
LDAP_USE_TLS: false
- name: 📤 Upload Coverage
uses: codecov/codecov-action@v3
with:
files: ./coverage.xml
verbose: true