finki-main
main
|
Last change
on this file since 81bc7da was 81bc7da, checked in by Klimentina Efremova <klimentina08642@…>, 3 months ago |
|
Initial commit
|
-
Property mode
set to
100644
|
|
File size:
547 bytes
|
| Line | |
|---|
| 1 | name: Run npm Tests
|
|---|
| 2 |
|
|---|
| 3 | on:
|
|---|
| 4 | workflow_dispatch:
|
|---|
| 5 | push:
|
|---|
| 6 | branches: [ "main" ]
|
|---|
| 7 | pull_request:
|
|---|
| 8 | branches: [ "main" ]
|
|---|
| 9 |
|
|---|
| 10 | jobs:
|
|---|
| 11 | test:
|
|---|
| 12 | runs-on: ubuntu-latest
|
|---|
| 13 |
|
|---|
| 14 | strategy:
|
|---|
| 15 | matrix:
|
|---|
| 16 | node-version: [22, 23]
|
|---|
| 17 |
|
|---|
| 18 | steps:
|
|---|
| 19 | - name: Checkout repository
|
|---|
| 20 | uses: actions/checkout@v2
|
|---|
| 21 |
|
|---|
| 22 | - name: Set up Node.js ${{ matrix.node-version }}
|
|---|
| 23 | uses: actions/setup-node@v3
|
|---|
| 24 | with:
|
|---|
| 25 | node-version: ${{ matrix.node-version }}
|
|---|
| 26 |
|
|---|
| 27 | - name: Install dependencies
|
|---|
| 28 | run: npm install
|
|---|
| 29 |
|
|---|
| 30 | - name: Run tests
|
|---|
| 31 | run: npm test |
|---|
Note:
See
TracBrowser
for help on using the repository browser.