Update docker config

This commit is contained in:
James Sumners 2022-03-27 11:58:36 -04:00
parent fd39f3bdc0
commit 7a758f27ad
No known key found for this signature in database
GPG Key ID: DD9AAE30F864776B
3 changed files with 15 additions and 23 deletions

View File

@ -13,26 +13,18 @@ jobs:
name: Baseline Tests name: Baseline Tests
runs-on: ubuntu-latest runs-on: ubuntu-latest
# services: services:
# openldap: openldap:
# image: docker.pkg.github.com/ldapjs/docker-test-openldap/openldap:1.0 image: ghcr.io/ldapjs/docker-test-openldap/openldap:latest
# ports: ports:
# - 389:389 - 389:389
# - 636:636 - 636:636
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: actions/setup-node@v3 - uses: actions/setup-node@v3
with:
# Hack way to start service since GitHub doesn't integrate with its own services node-version: 'lts/*'
- 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
- name: Install Packages - name: Install Packages
run: npm install run: npm install

View File

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

View File

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