From ab32c19bd0a47da22e3804c33e318e60fbe9648c Mon Sep 17 00:00:00 2001 From: Stephany Ho Date: Mon, 21 Oct 2024 22:31:51 -0400 Subject: [PATCH 1/2] Setup github actions --- .github/workflows/mlflow-js.yaml | 19 +++++++++++++++++++ mlflow/.gitignore | 2 ++ 2 files changed, 21 insertions(+) create mode 100644 .github/workflows/mlflow-js.yaml diff --git a/.github/workflows/mlflow-js.yaml b/.github/workflows/mlflow-js.yaml new file mode 100644 index 00000000..c7759b08 --- /dev/null +++ b/.github/workflows/mlflow-js.yaml @@ -0,0 +1,19 @@ +name: mlflow +on: + push: + branches: [stephany/github-actions-3] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version: '22.7' + - name: Install and build + working-directory: ./mlflow + run: npm ci + - name: Build + working-directory: ./mlflow + run: npm run build diff --git a/mlflow/.gitignore b/mlflow/.gitignore index 845fa117..2198aa0f 100644 --- a/mlflow/.gitignore +++ b/mlflow/.gitignore @@ -13,3 +13,5 @@ lib/ # Temporary files temp/ + +package-lock.json \ No newline at end of file From efffe67985745da3aa59b0406cf01a224ef64441 Mon Sep 17 00:00:00 2001 From: Stephany Ho Date: Mon, 21 Oct 2024 22:32:20 -0400 Subject: [PATCH 2/2] Add rules to eslint.config.mjs --- mlflow/eslint.config.mjs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mlflow/eslint.config.mjs b/mlflow/eslint.config.mjs index 35ea989f..f3e6c8b9 100644 --- a/mlflow/eslint.config.mjs +++ b/mlflow/eslint.config.mjs @@ -7,6 +7,12 @@ export default tseslint.config( eslint.configs.recommended, ...tseslint.configs.recommended, { - ignores: ['docs'], + ignores: ['docs', 'lib/**'], + }, + { + rules: { + '@typescript-eslint/no-explicit-any': 'off', + 'no-console': 'off', + }, } );