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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 394 - (hide annotations)
Mon Jul 29 17:30:00 2024 UTC (8 months, 2 weeks ago) by rakin
File size: 1043 byte(s)
ci(workflows): update nodejs versions
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 rakin 394 node-version: [16.x, 18.x]
16 rakin 8 # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
17    
18     steps:
19     - uses: actions/checkout@v3
20 rakin 161
21 rakin 8 - name: Use Node.js ${{ matrix.node-version }}
22     uses: actions/setup-node@v3
23     with:
24     node-version: ${{ matrix.node-version }}
25 rakin 135
26 rakin 145 - name: "Install Dependencies"
27 rakin 162 run: npm install
28 rakin 145
29     - name: "Install Dev Dependencies"
30 rakin 162 run: npm install --dev
31 rakin 145
32 rakin 345 - name: "ESLint"
33     run: npm run lint || echo "ESLint Failed"
34    
35 rakin 145 - name: "Build"
36 rakin 162 run: npm run build --if-present
37 rakin 145
38     - name: "Run Test Suites"
39 rakin 162 run: npm run test --if-present

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26