mirror of
https://github.com/bnmgh1/NodeSandbox.git
synced 2025-04-22 03:50:25 +08:00
21 lines
473 B
YAML
21 lines
473 B
YAML
name: npm_test
|
|
on: [pull_request, push]
|
|
jobs:
|
|
npm_test:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [macos-latest, ubuntu-latest, windows-latest]
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: '18'
|
|
- run: npm install
|
|
- run: npm test
|
|
- name: Upload bin folder
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: bin
|
|
path: bin/
|