Merge pull request #794 from ldapjs/docker-updates

Update docker config
This commit is contained in:
James Sumners 2022-03-27 12:06:33 -04:00 committed by GitHub
commit 9143456b4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 23 deletions

View File

@ -13,26 +13,18 @@ jobs:
name: Baseline Tests
runs-on: ubuntu-latest
# services:
# openldap:
# image: docker.pkg.github.com/ldapjs/docker-test-openldap/openldap:1.0
# ports:
# - 389:389
# - 636:636
services:
openldap:
image: ghcr.io/ldapjs/docker-test-openldap/openldap:latest
ports:
- 389:389
- 636:636
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
# Hack way to start service since GitHub doesn't integrate with its own services
- name: Docker login
run: docker login docker.pkg.github.com -u ${GITHUB_ACTOR} -p ${GITHUB_TOKEN}
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Pull Docker image
run: docker pull "docker.pkg.github.com/ldapjs/docker-test-openldap/openldap:latest"
- name: Start OpenLDAP service
run: docker run -it -d --name openldap -p 389:389 -p 636:636 docker.pkg.github.com/ldapjs/docker-test-openldap/openldap:latest
with:
node-version: 'lts/*'
- name: Install Packages
run: npm install

View File

@ -2,7 +2,7 @@ version: '3'
services:
openldap:
image: docker.pkg.github.com/ldapjs/docker-test-openldap/openldap:latest
image: ghcr.io/ldapjs/docker-test-openldap/openldap:latest
ports:
- 389:389
- 636:636

View File

@ -40,12 +40,12 @@
"tap": "15.2.3"
},
"scripts": {
"test": "tap --no-cov",
"test:ci": "tap --coverage-report=lcovonly",
"test:cov": "tap",
"test:cov:html": "tap --coverage-report=html",
"test:watch": "tap -n -w --no-coverage-report",
"test:integration": "tap --no-cov 'test-integration/**/*.test.js'",
"test": "tap --no-cov -R terse",
"test:ci": "tap --coverage-report=lcovonly -R terse",
"test:cov": "tap -R terse",
"test:cov:html": "tap --coverage-report=html -R terse",
"test:watch": "tap -n -w --no-coverage-report -R terse",
"test:integration": "tap --no-cov -R terse 'test-integration/**/*.test.js'",
"test:integration:local": "docker-compose up -d && npm run test:integration && docker-compose down",
"lint": "eslint . --fix",
"lint:ci": "eslint .",