Skip to content

Experimental parallel git commands (#25) #175

Experimental parallel git commands (#25)

Experimental parallel git commands (#25) #175

Workflow file for this run

name: build
on: [push, pull_request]
permissions:
contents: read
jobs:
# Somewhat unexpectedly, can test Windows and Ubuntu together!
test-windows:
name: Test on node ${{ matrix.node-version }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [16.x, 18.x]
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: git config user.email
run: git config --global "user.email" "noreply@no.reply"
- name: git config user.name
run: git config --global "user.name" "Unit Test"
- name: npm install
run: npm install
- name: npm test
run: npm run test
env:
CI: true
# macOS does not have Mercurial preinstalled
test-macos:
name: Test on node ${{ matrix.node-version }} and macOS
runs-on: macos-latest
strategy:
matrix:
node-version: [16.x, 18.x]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install, and test
run: |
brew install mercurial
git config --global "user.email" "noreply@no.reply"
git config --global "user.name" "Unit Test"
npm install
npm run test
env:
CI: true