From c168e7ade3388c9cea07d6cf4759bf0e7a1407a3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 30 May 2021 21:33:15 +0200 Subject: [PATCH] Add docker image build to GitHub actions MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .github/workflows/build.yml | 7 +++++++ .github/workflows/unit-tests.yml | 4 ++-- package.json | 1 + 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 04770963..ed9dcb72 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 76fdba6f..cb19ac49 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -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 diff --git a/package.json b/package.json index b1d4094d..b5ee8fe8 100644 --- a/package.json +++ b/package.json @@ -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", -- 2.34.1