From eb1bee00a1c3396dcadda268ddabe279b68bb8da Mon Sep 17 00:00:00 2001 From: pasta04 Date: Mon, 16 Sep 2024 13:38:18 +0900 Subject: [PATCH] add github action --- .github/renovate.json | 10 ++++++++++ .github/workflows/nodejs.yml | 29 +++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 .github/renovate.json create mode 100644 .github/workflows/nodejs.yml diff --git a/.github/renovate.json b/.github/renovate.json new file mode 100644 index 0000000..e359722 --- /dev/null +++ b/.github/renovate.json @@ -0,0 +1,10 @@ +{ + "extends": [ + "config:base", + ":prHourlyLimitNone", + ":prConcurrentLimitNone", + ":semanticCommits" + ], + "rangeStrategy": "update-lockfile", + "postUpdateOptions": ["npmDedupe", "yarnDedupeHighest"] +} diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml new file mode 100644 index 0000000..15b6ed6 --- /dev/null +++ b/.github/workflows/nodejs.yml @@ -0,0 +1,29 @@ +name: Node CI + +on: + push: + branches: + - master + pull_request: + types: + - opened + - synchronize + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version: 21.x + - name: Install + run: | + npm ci + - name: Run ESLint + run: npm run lint + - name: Build + run: npm run build