diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..62aa61a --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,51 @@ +name: CI + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: ${{ matrix.os }} + + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + # TODO: Include 22 and 23 when https://github.com/yeoman/yeoman-welcome/issues/7 is fixed + node: [8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21] + exclude: + # Avoid Error: Unable to find Node versions for platform darwin and architecture arm64: + # @SEE: https://github.com/yeoman/yeoman-welcome/actions/runs/12846318454/job/35821411749?pr=6 + - os: macos-latest + node: 8 + - os: macos-latest + node: 9 + - os: macos-latest + node: 10 + - os: macos-latest + node: 11 + - os: macos-latest + node: 12 + - os: macos-latest + node: 13 + - os: macos-latest + node: 14 + - os: macos-latest + node: 15 + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node }} + + - name: Install dependencies + run: npm install + + - name: Run tests + run: npm test \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index f70ff96..0000000 --- a/.travis.yml +++ /dev/null @@ -1,5 +0,0 @@ -language: node_js -node_js: - - node - - 10 - - 8 diff --git a/readme.md b/readme.md index 4d50cbd..09b08f7 100644 --- a/readme.md +++ b/readme.md @@ -1,4 +1,4 @@ -# yeoman-welcome [![Build Status](https://travis-ci.org/yeoman/yeoman-welcome.svg?branch=master)](https://travis-ci.org/yeoman/yeoman-welcome) +# yeoman-welcome [![CI](https://github.com/yeoman/yeoman-welcome/actions/workflows/ci.yml/badge.svg)](https://github.com/yeoman/yeoman-welcome/actions/workflows/ci.yml) > Yeoman welcome message used in generators