/[sudobot]/trunk/.github/workflows/build.yml
ViewVC logotype

Annotation of /trunk/.github/workflows/build.yml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8 - (hide annotations)
Mon Jul 29 17:28:12 2024 UTC (8 months, 1 week ago) by rakin
File size: 789 byte(s)
Create build.yml
1 rakin 8 # This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2     # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3    
4     name: Build
5    
6     on: [ push, pull_request ]
7    
8     jobs:
9     build:
10    
11     runs-on: ubuntu-latest
12    
13     strategy:
14     matrix:
15     node-version: [14.x, 16.x]
16     # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
17    
18     steps:
19     - uses: actions/checkout@v3
20     - name: Use Node.js ${{ matrix.node-version }}
21     uses: actions/setup-node@v3
22     with:
23     node-version: ${{ matrix.node-version }}
24     cache: 'npm'
25     - run: npm update
26     - run: npm run test --if-present

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26