From be04ac2ff2b2ef17b066bd3a1228408effaa90c4 Mon Sep 17 00:00:00 2001 From: origranot Date: Fri, 30 Aug 2024 15:08:08 +0300 Subject: [PATCH] fix: ci --- .github/workflows/build-chartdb.yaml | 27 --------------------------- .github/workflows/ci.yaml | 27 +++++++++++++++++++++++++++ .prettierignore | 1 + 3 files changed, 28 insertions(+), 27 deletions(-) delete mode 100644 .github/workflows/build-chartdb.yaml create mode 100644 .github/workflows/ci.yaml create mode 100644 .prettierignore diff --git a/.github/workflows/build-chartdb.yaml b/.github/workflows/build-chartdb.yaml deleted file mode 100644 index d3d1d968..00000000 --- a/.github/workflows/build-chartdb.yaml +++ /dev/null @@ -1,27 +0,0 @@ -name: build-chartdb - -on: - push: - branches: [main] - pull_request: - branches: [main] - -jobs: - build: - runs-on: ubuntu-latest - env: - working-directory: ./ - permissions: write-all - - steps: - - uses: actions/checkout@v3 - - name: Use Node.js 22.x - uses: actions/setup-node@v4 - with: - node-version: 22.x - cache: 'npm' - cache-dependency-path: './package-lock.json' - - name: Install - run: npm ci - - name: Build chartdb - run: npm run build diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 00000000..384b4ad2 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,27 @@ +name: CI + +on: + pull_request: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Use Node.js 22.x + uses: actions/setup-node@v4 + with: + node-version: 22.x + + - name: Install dependencies + run: npm ci + + - name: Lint + run: npm run lint + + - name: Build + run: npm run build \ No newline at end of file diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 00000000..340c9844 --- /dev/null +++ b/.prettierignore @@ -0,0 +1 @@ +**/*.yaml \ No newline at end of file