From f417ceee935b9042adc99d9bc09f95931addd2ad Mon Sep 17 00:00:00 2001 From: Nicholas Deis Date: Sun, 9 Jun 2024 15:54:32 -0600 Subject: [PATCH 1/2] Test new build pipeline --- .github/workflows/main.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..cd30ab8 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,23 @@ +name: Main test pipeline + +on: + push: + branches: ["master"] + pull_request: + branches: ["master"] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [14.x, 16.x, 18.x, 20.x] + steps: + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: "npm" + - run: npm ci + - run: npm test From 38cf35b7036a6cb1163ba99b6d17abbfd20b74d4 Mon Sep 17 00:00:00 2001 From: Nicholas Deis Date: Sun, 9 Jun 2024 15:59:38 -0600 Subject: [PATCH 2/2] Reduce workload --- .github/workflows/main.yml | 5 +++-- .travis.yml | 7 ------- README.md | 2 +- 3 files changed, 4 insertions(+), 10 deletions(-) delete mode 100644 .travis.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cd30ab8..b0939a1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,10 +11,11 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [14.x, 16.x, 18.x, 20.x] + # Have to use 18.x and up because later versions of eslint require structuredClone + node-version: [18.x, 20.x] steps: - uses: actions/checkout@v4 - - name: Use Node.js ${{ matrix.node-version }} + - name: Run tests against node ${{ matrix.node-version }} uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 4243da4..0000000 --- a/.travis.yml +++ /dev/null @@ -1,7 +0,0 @@ -language: node_js -node_js: - - "10" - - "12" -os: - - linux - - windows \ No newline at end of file diff --git a/README.md b/README.md index 88e6506..5780196 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Build Status](https://travis-ci.org/nickdeis/eslint-plugin-notice.svg)](https://travis-ci.org/nickdeis/eslint-plugin-notice) +[![Build Status](https://github.com/nickdeis/eslint-plugin-notice/actions/workflows/main/badge.svg)](https://github.com/nickdeis/eslint-plugin-notice/actions/workflows/main/badge.svg) # eslint-plugin-notice