diff --git a/.github/workflows/node-linux.yml b/.github/workflows/node-linux.yml new file mode 100644 index 0000000000..41008e057d --- /dev/null +++ b/.github/workflows/node-linux.yml @@ -0,0 +1,40 @@ +name: Node + +on: [push, pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node: [ '10.16', '12' ] + + name: ${{ matrix.node }} (Linux) + steps: + - name: Configure Git + run: | + git config --global core.autocrlf false + git config --global user.name "xyz" + git config --global user.email "x@y.z" + - name: Checkout Commit + uses: actions/checkout@v1 + - name: Setup Node + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node }} + - name: checkout master + run: git branch -f master origin/master + - name: install pnpm + run: | + npm install pnpm@next -g + pnpm --version + - name: pnpm install + run: pnpm recursive install + - name: run tests (master) + if: github.ref == 'refs/heads/master' + run: pnpm run test-master + - name: run tests (branch) + if: github.ref != 'refs/heads/master' + run: pnpm run test-branch diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 484ef9bba1..0000000000 --- a/.travis.yml +++ /dev/null @@ -1,38 +0,0 @@ -language: node_js -node_js: - - 10.16 - - 12.18.2 -git: - depth: 5 -sudo: false -before_install: - - npm set verify-store-integrity false - - git fetch --unshallow - - curl -L https://raw.githubusercontent.com/pnpm/self-installer/master/install.js | PNPM_VERSION=5.9.3 node - # Testing whether pnpm can upgrade itself - - npm install --global npm@latest - - pnpm i -g pnpm@next - - pnpm -v -install: - - pnpm install --force -script: - - set -e # Fail on first error - # TODO: fix commitlint - # - /bin/bash lint-commits.sh - # - ./tools/node_modules/.bin/commitlint --from=$TRAVIS_COMMIT - - if [ "$TRAVIS_BRANCH" = "master" ]; then pnpm run test-master; fi - - if [ "$TRAVIS_BRANCH" != "master" ]; then pnpm run test-branch; fi - - set +e -after_success: - - if [ "$TRAVIS_NODE_VERSION" = "12" ]; then pnpm run coveralls; fi; -cache: - directories: - - storage -env: - global: - - CC=clang CXX=clang++ npm_config_clang=1 - - GIT_NAME: Travis CI - - GIT_EMAIL: nobody@nobody.org - - GITHUB_REPO: pnpm/pnpm -notifications: - email: false diff --git a/packages/pnpm/README.md b/packages/pnpm/README.md index f1523fe0c3..d982a71641 100644 --- a/packages/pnpm/README.md +++ b/packages/pnpm/README.md @@ -15,7 +15,6 @@ To quote the [Rush](https://rushjs.io/) team: > Microsoft uses pnpm in Rush repos with hundreds of projects and hundreds of PRs per day, and we’ve found it to be very fast and reliable. [![npm version](https://img.shields.io/npm/v/pnpm.svg)](https://www.npmjs.com/package/pnpm) -[![Status](https://travis-ci.com/pnpm/pnpm.svg?branch=master)](https://travis-ci.com/pnpm/pnpm "See test builds") [![Coverage Status](https://coveralls.io/repos/github/pnpm/pnpm/badge.svg?branch=master)](https://coveralls.io/github/pnpm/pnpm?branch=master) [![Join the chat at Discord](https://img.shields.io/discord/731599538665553971.svg)](https://discord.gg/mThkzAT) [![OpenCollective](https://opencollective.com/pnpm/backers/badge.svg)](#backers)