Files
pnpm/.github/workflows/node-windows.yml
2020-05-23 16:29:04 +03:00

41 lines
972 B
YAML

name: Node
on: [push, pull_request]
jobs:
build:
runs-on: windows-2019
strategy:
matrix:
node: [ '14' ]
name: ${{ matrix.node }} (Windows)
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