From b843bab1a0b665ac4ecb6521c8320695adfc56bc Mon Sep 17 00:00:00 2001 From: Aliaksei Date: Tue, 12 Nov 2024 10:52:55 +0000 Subject: [PATCH 1/5] feat: added Github action for lint --- .github/workflows/lint.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..0dc34c2 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,22 @@ +name: Lint + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - name: Set Node.js 20.x + uses: actions/setup-node@v3 + with: + node-version: 20.x + + - name: Install dependencies + run: npm ci + + - name: Lint + run: npm run lint From 1bab213bda8489d041d9d767fe68907b59c47e6b Mon Sep 17 00:00:00 2001 From: Aliaksei Date: Tue, 12 Nov 2024 10:55:06 +0000 Subject: [PATCH 2/5] feat: added Github action for lint --- .github/workflows/lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 0dc34c2..a336f55 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -16,7 +16,7 @@ jobs: node-version: 20.x - name: Install dependencies - run: npm ci + run: npm install --package-lock-only - name: Lint run: npm run lint From 759b2a8cfb60b02dd022d7258e3554ab5ae98afe Mon Sep 17 00:00:00 2001 From: Aliaksei Date: Tue, 12 Nov 2024 10:59:01 +0000 Subject: [PATCH 3/5] feat: added Github action for lint --- .github/workflows/lint.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index a336f55..7c6df3f 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -9,14 +9,13 @@ on: jobs: lint: runs-on: ubuntu-latest + strategy: + matrix: + node-version: ['20'] steps: - - name: Set Node.js 20.x - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: 20.x - - - name: Install dependencies - run: npm install --package-lock-only - - - name: Lint - run: npm run lint + node-version: ${{ matrix.node-version }} + - run: npm install --package-lock-only + - run: npm run lint From aeff74d1ef4dc7d7992fc12f9dc23f18472da132 Mon Sep 17 00:00:00 2001 From: Aliaksei Date: Tue, 12 Nov 2024 11:00:24 +0000 Subject: [PATCH 4/5] feat: added Github action for lint --- .github/workflows/lint.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 7c6df3f..d446640 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -13,9 +13,9 @@ jobs: matrix: node-version: ['20'] steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - - run: npm install --package-lock-only + - run: npm ci - run: npm run lint From cd9b951f918ed6316ddbfadd21ccb970a82fa393 Mon Sep 17 00:00:00 2001 From: Aliaksei Date: Tue, 12 Nov 2024 11:02:58 +0000 Subject: [PATCH 5/5] feat: added Github action for lint --- .github/workflows/unit-tests.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/unit-tests.yml diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml new file mode 100644 index 0000000..79ff659 --- /dev/null +++ b/.github/workflows/unit-tests.yml @@ -0,0 +1,21 @@ +name: Unit tests + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + lint: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: ['20'] + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci + - run: npm run test:unit