diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 0000000..08b3a9f --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,11 @@ +name: Check + +on: [push, pull_request] + +jobs: + code-style: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: npm ci + - run: npm run fmt:check diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1d1ff4a..1d5dd87 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,14 +7,14 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [16.x, 18.x] + node-version: [20.x, 22.x] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - - run: npm i + - run: npm ci - run: npm test timeout-minutes: 1 env: