From 4f357009bc919f5fdecfca727639fb5b1314368f Mon Sep 17 00:00:00 2001 From: Sebastian Beltran Date: Tue, 22 Oct 2024 19:21:28 -0500 Subject: [PATCH 1/2] add test workflow --- .github/workflows/test.yml | 27 +++++++++++++++++++++++++++ package.json | 3 +++ 2 files changed, 30 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..c29dd02 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,27 @@ +name: Run Tests + +on: + push: + pull_request: + +concurrency: + group: "test" + cancel-in-progress: false + +jobs: + test: + + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23] + steps: + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + - name: npm install and test + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: npm it \ No newline at end of file diff --git a/package.json b/package.json index 227955f..e76d626 100644 --- a/package.json +++ b/package.json @@ -58,5 +58,8 @@ "npm": "^6.10.3", "regenerator-runtime": "^0.13.3", "yargs": "^13.3.0" + }, + "engines": { + "node": ">=10" } } From ad1d02cbc37089f64f07d1cb04e5ef9638e28407 Mon Sep 17 00:00:00 2001 From: Sebastian Beltran Date: Tue, 12 Nov 2024 19:51:45 -0500 Subject: [PATCH 2/2] use lts versiones --- .github/workflows/test.yml | 3 +-- package.json | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c29dd02..ea53b43 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,11 +10,10 @@ concurrency: jobs: test: - runs-on: ubuntu-latest strategy: matrix: - node-version: [10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23] + node-version: [18, 19, 20, 21, 22, 23] steps: - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} diff --git a/package.json b/package.json index e76d626..54358b0 100644 --- a/package.json +++ b/package.json @@ -60,6 +60,6 @@ "yargs": "^13.3.0" }, "engines": { - "node": ">=10" + "node": ">=18" } }