From 89f0f9d8688072c7bb81303e105016fe80acb9fe Mon Sep 17 00:00:00 2001 From: azu Date: Sun, 9 Oct 2022 22:55:41 +0900 Subject: [PATCH] CI: update node versions (#144) * CI: update node versions * CI: add matrix * docs: add badge * chore: packageManager --- .github/workflows/test.yml | 21 +++++++++++++++++++++ .travis.yml | 9 --------- ReadMe.md | 5 +---- appveyor.yml | 22 ---------------------- package.json | 3 ++- 5 files changed, 24 insertions(+), 36 deletions(-) create mode 100644 .github/workflows/test.yml delete mode 100644 .travis.yml delete mode 100644 appveyor.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..6eef3e0 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,21 @@ +name: test +on: [push, pull_request] +jobs: + test: + name: "Test on Node.js ${{ matrix.node-version }} ${{ matrix.os }}" + strategy: + matrix: + os: [ubuntu-latest, windows-latest] + node-version: [ 14, 16, 18 ] + runs-on: ${{ matrix.os }} + steps: + - name: checkout + uses: actions/checkout@v3 + - name: setup Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + - name: Install + run: yarn install + - name: Test + run: yarn test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 5316494..0000000 --- a/.travis.yml +++ /dev/null @@ -1,9 +0,0 @@ -sudo: false -language: node_js -node_js: - - 8 - - 10 - - 12 -notification: - slack: - secure: "lOi/Boe8VymCFXJY+6VFM7uTQ5dirToXHEmRWc4yWO+wEWeB2xMxmG4qBS4hqpgUfnzg+6MQmpvI4xti2Ddsp9DOPEORiKfdUKS1duTsijucEA3N0ERS4SUfSVht2QivGgRLEQ3UtvS+nFratPfGIp2nnUejpWCaKuOuSqVAIbiZ0lcnlDdmwGsvdom+JBpga20iOkmg5YqdMvYUwTTHGQl9EYC1lcyIEs3hWbF4JSfZ+V85lWQ/PM5DINOyuMz7nWakzOX9hn13xEzdGw2lhNM3i0cp+Q4/9prvXUOYe5A66/OVxMM0i6DcyTHsRCU3x+5RjkerUW1DaQyr4Ju9NE3spjSHlqm+p2XjjPQGP0MSFWf5ArDiSz32/dxEikvLRk9PUdsiYAWdrAPZbzKxg0Ua294hnHS69CjGcS3OmQvKH/AVVoKgHo8vBDQgUnNokD0enaVcyUGYpScaMYinPfqJ3BUjZGPx5Eq7htCg393UUN8qv6Sh1Thgm0VVkphinMlZgDT/Ac28ZtnbrG28iVivW6XZ1dcvzfIs+YoqI+fSJrmQQ3s3r4c1g+JNqgcvsWJ2ekMelmxaudfvPC2HQL/CbCNB9zn5qpPToDJtTZdLJ5st0QDLsT+lF2WHeV8j5VLkMUcoHaj8878tdB7J8oQKwpdHZXZDAO3+Jm1w2UM=" diff --git a/ReadMe.md b/ReadMe.md index 2caf04c..2a1ea45 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -2,10 +2,7 @@ [![textlint rule](https://img.shields.io/badge/textlint-fixable-green.svg?style=social)](https://textlint.github.io/) [![npm](https://img.shields.io/npm/v/textlint-rule-no-dead-link.svg)](https://www.npmjs.com/package/textlint-rule-no-dead-link) -[![Build Status](https://travis-ci.org/textlint-rule/textlint-rule-no-dead-link.svg?branch=master)](https://travis-ci.org/textlint-rule/textlint-rule-no-dead-link) -[![Build status](https://ci.appveyor.com/api/projects/status/mkllnrt580c33hcw/branch/master?svg=true)](https://ci.appveyor.com/project/textlintrule/textlint-rule-no-dead-link/branch/master) -[![Dependency Status](https://david-dm.org/textlint-rule/textlint-rule-no-dead-link.svg)](https://david-dm.org/textlint-rule/textlint-rule-no-dead-link) -[![devDependency Status](https://david-dm.org/textlint-rule/textlint-rule-no-dead-link/dev-status.svg)](https://david-dm.org/textlint-rule/textlint-rule-no-dead-link#info=devDependencies) +[![test](https://github.com/textlint-rule/textlint-rule-no-dead-link/actions/workflows/test.yml/badge.svg)](https://github.com/textlint-rule/textlint-rule-no-dead-link/actions/workflows/test.yml) [textlint](https://github.com/textlint/textlint) rule to make sure every link in a document is available. diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index a27b838..0000000 --- a/appveyor.yml +++ /dev/null @@ -1,22 +0,0 @@ -# Test against this version of Node.js -environment: - matrix: - # node.js - - nodejs_version: "10" - -# Install scripts. (runs after repo cloning) -install: - # Get the latest stable version of Node.js or io.js - - ps: Install-Product node $env:nodejs_version - # install modules - - npm i -g yarn - - yarn install - -# Post-install test scripts. -test_script: - # Output useful info for debugging. - - node --version - - yarn test - -# Don't actually build. -build: off diff --git a/package.json b/package.json index b9de9df..36e5a6a 100644 --- a/package.json +++ b/package.json @@ -65,5 +65,6 @@ }, "engines": { "node": ">=4" - } + }, + "packageManager": "yarn@1.22.15" }