Skip to content

Commit

Permalink
now check if dist properly built
Browse files Browse the repository at this point in the history
  • Loading branch information
vemonet committed Jul 23, 2023
1 parent 1206c1b commit 8a672eb
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 24 deletions.
35 changes: 21 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,24 @@ on:

jobs:

# git diff --exit-code dist
build-setup-spark:
name: 📦 Lint and build setup-spark
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
run: npm ci

- name: Run eslint checks
run: npm run test

- name: Build action
run: npm run build

- name: Check dist up-to-date
run: git diff --exit-code dist


test-setup-spark:
name: ☑️ Run setup-spark
Expand All @@ -35,8 +52,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3

- name: npm install
- name: Install dependencies
run: npm ci

- name: Run setup-spark ${{ matrix.versions.spark }}
Expand Down Expand Up @@ -68,8 +84,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3

- name: npm install
- name: Install dependencies
run: npm ci

- name: Run setup-spark ${{ matrix.versions.spark }}
Expand Down Expand Up @@ -98,7 +113,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: npm install
- name: Install dependencies
run: npm ci

- name: Run setup-spark ${{ matrix.versions.spark }}
Expand Down Expand Up @@ -132,14 +147,6 @@ jobs:
uses: github/codeql-action/analyze@v2


lint:
name: ✅ Check with ESlint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: npm ci
- run: npm run test

check-license:
name: 📜 Check licenses
if: ${{ github.event_name == 'push' }}
Expand Down
22 changes: 12 additions & 10 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
/***/ 9559:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {

// test

"use strict";

var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
Expand Down Expand Up @@ -683,8 +685,8 @@ class OidcClient {
const res = yield httpclient
.getJson(id_token_url)
.catch(error => {
throw new Error(`Failed to get ID Token. \n
Error Code : ${error.statusCode}\n
throw new Error(`Failed to get ID Token. \n
Error Code : ${error.statusCode}\n
Error Message: ${error.result.message}`);
});
const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value;
Expand Down Expand Up @@ -6816,7 +6818,7 @@ module.exports = require("util");
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
/******/
/******/
/******/ // The require function
/******/ function __nccwpck_require__(moduleId) {
/******/ // Check if module is in cache
Expand All @@ -6830,7 +6832,7 @@ module.exports = require("util");
/******/ // no module.loaded needed
/******/ exports: {}
/******/ };
/******/
/******/
/******/ // Execute the module function
/******/ var threw = true;
/******/ try {
Expand All @@ -6839,23 +6841,23 @@ module.exports = require("util");
/******/ } finally {
/******/ if(threw) delete __webpack_module_cache__[moduleId];
/******/ }
/******/
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/************************************************************************/
/******/ /* webpack/runtime/compat */
/******/
/******/
/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";
/******/
/******/
/************************************************************************/
/******/
/******/
/******/ // startup
/******/ // Load entry module and return exports
/******/ // This entry module is referenced by other modules so it can't be inlined
/******/ var __webpack_exports__ = __nccwpck_require__(9559);
/******/ module.exports = __webpack_exports__;
/******/
/******/
/******/ })()
;

0 comments on commit 8a672eb

Please sign in to comment.