From e4785ce64ba5b3e7d9a748d204362d4c0dfcd7d4 Mon Sep 17 00:00:00 2001 From: Yuhei Yasuda Date: Mon, 31 Jul 2023 20:47:05 +0900 Subject: [PATCH] update workflow --- .github/workflows/ci.yml | 44 ++++++++++++++++++++++++++++++++++++++ .github/workflows/test.yml | 25 ---------------------- 2 files changed, 44 insertions(+), 25 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..9f11f51 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,44 @@ +name: CI + +on: push + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + test: + name: Test + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Setup node + uses: actions/setup-node@v3 + with: + node-version-file: .nvmrc + cache: npm + - name: Install dependencies + run: npm ci + - name: Build + run: npm run build + - name: Test + run: npm test + + lint: + name: Lint + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Setup node + uses: actions/setup-node@v3 + with: + node-version-file: .nvmrc + cache: npm + - name: Install dependencies + run: npm ci + - name: Build + run: npm run build + - name: Lint + run: npm run lint diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 3b6e4b8..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Test - -on: push - -concurrency: - group: test - cancel-in-progress: true - -jobs: - test: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Setup Node - uses: actions/setup-node@v3 - with: - node-version-file: .nvmrc - cache: npm - - name: Install dependencies - run: npm ci - - name: Lint - run: npm run lint - - name: Test - run: npm test