From 71fc0b0fadb82e60836d39ea680fe988d9ab8614 Mon Sep 17 00:00:00 2001 From: Stephany Ho Date: Sat, 19 Oct 2024 14:13:17 -0400 Subject: [PATCH] Setup GitHub Actions --- .github/workflows/mlflow-js.yaml | 19 +++++++++++++++++++ Jenkinsfile | 29 ----------------------------- 2 files changed, 19 insertions(+), 29 deletions(-) create mode 100644 .github/workflows/mlflow-js.yaml delete mode 100644 Jenkinsfile diff --git a/.github/workflows/mlflow-js.yaml b/.github/workflows/mlflow-js.yaml new file mode 100644 index 00000000..760090a1 --- /dev/null +++ b/.github/workflows/mlflow-js.yaml @@ -0,0 +1,19 @@ +name: mlflow +on: + push: + branches: [stephany/github-actions] +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 dependencies + run: npm ci + - name: Eslint + run: npm run lint + - name: Build + run: npm run build diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index 0d2eb59e..00000000 --- a/Jenkinsfile +++ /dev/null @@ -1,29 +0,0 @@ -pipeline { - agent { - docker { image 'node:19-alpine' } - } - - stages { - stage('Install Dependencies') { - steps { - dir('mlflow') { - sh 'npm install' - } - } - } - stage('Lint') { - steps { - dir('mlflow') { - sh 'npm run lint' - } - } - } - stage('Bundle') { - steps { - dir('mlflow') { - sh 'npm run build' - } - } - } - } -} \ No newline at end of file