Update index.js #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI for moo-ignore | |
on: # when this action should be triggered? | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: # jobs are made of steps | |
build: | |
# Define the OS our workflow should run on | |
runs-on: ${{ matrix.os }} | |
strategy: | |
# To test across multiple language versions | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest ] | |
node-version: [14.x] | |
steps: # Clone the repo. See https://github.com/actions/checkout | |
- uses: actions/checkout@v2 | |
# Example of using an environment variable | |
- name: Use Node.js ${{ matrix.node-version }} # Will be: "Use Node.js 10.x" | |
uses: actions/setup-node@v1 # Install node. See https://github.com/actions/setup-node | |
with: | |
node-version: ${{ matrix.node-version }} | |
# Install a project with a clean slate | |
- run: npm ci | |
- run: npm test | |
# Environment variables | |
env: | |
CI: true |