Add docker image build to GitHub actions
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 30 May 2021 19:33:15 +0000 (21:33 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 30 May 2021 19:33:15 +0000 (21:33 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
.github/workflows/build.yml
.github/workflows/unit-tests.yml
package.json

index 04770963190e039fe8208af45984b557bc07f2c1..ed9dcb72788e5a235c58c505e5ad0e8f99201d77 100644 (file)
@@ -22,3 +22,10 @@ jobs:
       run: npm ci
     - name: npm run build
       run: npm run build
+  docker:
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/checkout@v2
+    - name: Set up Docker Buildx
+      id: buildx
+      uses: docker/setup-buildx-action@v1
index 76fdba6f142fdc2c92c5540fdef3d23f78f68e83..cb19ac49f3665d0dfc985633c1cf447fcda62748 100644 (file)
@@ -22,8 +22,8 @@ jobs:
         node-version: ${{ matrix.node-version }}
     - name: npm install
       run: npm ci
-    - name: npm run build
-      run: npm run build
+    - name: npm run build
+      run: npm run build
     - name: npm test
       run: npm test
 
index b1d4094d42c4f6805c99f7d243087744ff10ad3e..b5ee8fe855b9c5cb43733d627d9516f570a3c6c0 100644 (file)
@@ -38,6 +38,7 @@
     "lint:fix": "cross-env TIMING=1 eslint --fix --ext .js,.ts src",
     "import-sort": "npx import-sort-cli --write 'src/**/*.ts{,x}'",
     "tsc": "tsc",
+    "pretest": "npm run build:dev",
     "test": "cross-env TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\"}' nyc mocha test/**/*Test.ts",
     "coverage": "nyc report --reporter=lcov",
     "coverage:html": "nyc report --reporter=html",