diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..8d83ebb --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + test: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [22, 20, 18, 16, 14] + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: "yarn" + + - name: Install dependencies + run: yarn install + + - name: Run tests + run: yarn test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 2e4fdd0..0000000 --- a/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -language: node_js -node_js: - - "node" - - "11" - - "10" - - "8" - -before_install: - - yarn global add greenkeeper-lockfile@1 - - export PATH=$PATH:`yarn global bin` - -before_script: - - greenkeeper-lockfile-update - - greenkeeper-lockfile-upload - -script: - - yarn test