From: Jérôme Benoit Date: Sun, 30 May 2021 19:33:15 +0000 (+0200) Subject: Add docker image build to GitHub actions X-Git-Tag: v1.0.8~3 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=c168e7ade3388c9cea07d6cf4759bf0e7a1407a3;p=e-mobility-charging-stations-simulator.git Add docker image build to GitHub actions Signed-off-by: Jérôme Benoit --- 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",