mirror of
https://github.com/pnpm/pnpm.git
synced 2026-02-05 12:41:44 -05:00
ci: configure GitHub actions and remove Travis
This commit is contained in:
40
.github/workflows/node-linux.yml
vendored
Normal file
40
.github/workflows/node-linux.yml
vendored
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user