From 50e0655fb075bc471bbccb70c77912d3f0705289 Mon Sep 17 00:00:00 2001 From: Anton Medvedev Date: Fri, 13 Dec 2024 00:13:08 +0100 Subject: [PATCH] wip --- .github/workflows/check.yml | 11 +++++++++++ .github/workflows/test.yml | 8 ++++---- 2 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/check.yml 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: