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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 145 - (show annotations)
Mon Jul 29 17:28:46 2024 UTC (8 months, 1 week ago) by rakin
File size: 1018 byte(s)
Added ESLint
1 # 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
25 - name: "Install Dependencies"
26 - run: npm install
27
28 - name: "Install Dev Dependencies"
29 - run: npm install --dev
30
31 - name: "Run ESLint"
32 - run: npm run lint
33
34 - name: "Build"
35 - run: npm run build --if-present
36
37 - name: "Run Test Suites"
38 - run: npm run test --if-present

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26