Created
          August 13, 2019 23:17 
        
      - 
      
- 
        Save boneskull/357abeac81636ff900cedba1f589fe13 to your computer and use it in GitHub Desktop. 
    sample node ci/cd config
  
        
  
    
      This file contains hidden or 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: Node CI | |
| on: [push] | |
| jobs: | |
| build: | |
| name: Test on node ${{ matrix.node_version }} and ${{ matrix.os }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node_version: [8, 10, 12] | |
| os: [ubuntu-latest] | |
| steps: | |
| - uses: actions/checkout@master | |
| - name: Use Node.js ${{ matrix.node_version }} | |
| uses: actions/setup-node@v1 | |
| with: | |
| version: ${{ matrix.node_version }} | |
| - name: npm install, build, and test | |
| run: | | |
| npm install | |
| npm test | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
this file goes in
.github/workflows/nodejs.yml