mirror of
https://github.com/streamwall/streamwall.git
synced 2026-01-24 14:12:48 -05:00
Add node cache
This commit is contained in:
21
.github/workflows/test.yml
vendored
21
.github/workflows/test.yml
vendored
@@ -1,8 +1,9 @@
|
|||||||
name: Node.js CI
|
name: test
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
push:
|
push:
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
actions: read
|
actions: read
|
||||||
@@ -11,17 +12,21 @@ permissions:
|
|||||||
jobs:
|
jobs:
|
||||||
jest-coverage:
|
jest-coverage:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: actions/setup-node@v4
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 18.x
|
node-version: 18.x
|
||||||
|
cache: 'npm'
|
||||||
|
|
||||||
- run: npm install
|
- name: Install Dependencies
|
||||||
|
run: npm install
|
||||||
|
|
||||||
- run: npm test
|
- name: Run Tests
|
||||||
|
run: npm test
|
||||||
env:
|
env:
|
||||||
CI: true
|
CI: true
|
||||||
|
|
||||||
@@ -32,7 +37,3 @@ jobs:
|
|||||||
name: JEST Tests # Name of the check run which will be created
|
name: JEST Tests # Name of the check run which will be created
|
||||||
path: reports/jest-*.xml # Path to test results
|
path: reports/jest-*.xml # Path to test results
|
||||||
reporter: jest-junit # Format of test results
|
reporter: jest-junit # Format of test results
|
||||||
|
|
||||||
- uses: ArtiomTr/jest-coverage-report-action@v2
|
|
||||||
with:
|
|
||||||
test-script: npm test
|
|
||||||
Reference in New Issue
Block a user