From a74c823613da959399eec2680e9914c8a4fcc1f2 Mon Sep 17 00:00:00 2001 From: Kodai Matsumoto Date: Fri, 29 Dec 2023 18:05:58 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=93=E3=83=AB=E3=83=89=E3=83=BBLint?= =?UTF-8?q?=E3=83=BB=E3=83=95=E3=82=A9=E3=83=BC=E3=83=9E=E3=83=83=E3=83=88?= =?UTF-8?q?=E7=A2=BA=E8=AA=8D=E7=94=A8=E3=81=AB=E3=81=9D=E3=82=8C=E3=81=9E?= =?UTF-8?q?=E3=82=8C=E3=83=AF=E3=83=BC=E3=82=AF=E3=83=95=E3=83=AD=E3=83=BC?= =?UTF-8?q?=E3=82=92=E5=AE=9A=E7=BE=A9=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 22 ++++++++++++++++++++++ .github/workflows/format-check.yml | 22 ++++++++++++++++++++++ .github/workflows/{ci.yml => lint.yml} | 9 +++------ 3 files changed, 47 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/build.yml create mode 100644 .github/workflows/format-check.yml rename .github/workflows/{ci.yml => lint.yml} (73%) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..b00c76e --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,22 @@ +name: Build + +on: + push: + paths: + - '.github/workflows/build.yml' + - 'src/**/*.ts' + - 'package.json' + - 'package-lock.json' + - 'tsconfig.json' + - 'vite.config.ts' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v3 + with: + node-version: 16.15.0 + - run: npm ci + - run: npm run build diff --git a/.github/workflows/format-check.yml b/.github/workflows/format-check.yml new file mode 100644 index 0000000..e9aa384 --- /dev/null +++ b/.github/workflows/format-check.yml @@ -0,0 +1,22 @@ +name: Check for un-formatted files + +on: + push: + paths: + - '.editorconfig' + - '**/*.js' + - '**/*.json' + - '**/*.md' + - '**/*.ts' + - '**/*.yml' + +jobs: + format-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16.15.0 + - run: npm ci + - run: npm run format:check diff --git a/.github/workflows/ci.yml b/.github/workflows/lint.yml similarity index 73% rename from .github/workflows/ci.yml rename to .github/workflows/lint.yml index e399c3c..23ca9cd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/lint.yml @@ -1,19 +1,18 @@ -name: CI +name: Lint on: push: paths: - - '.github/workflows/**' + - '.github/workflows/lint.yml' - 'src/**/*.ts' - '.editorconfig' - 'eslint.config.js' - 'package.json' - - 'package-lock.json' - 'tsconfig.json' - 'vite.config.ts' jobs: - ci: + lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -21,6 +20,4 @@ jobs: with: node-version: 16.15.0 - run: npm ci - - run: npm run build - run: npm run lint - - run: npm run format:check