mirror of
https://github.com/zkitter/zkitterd.git
synced 2026-01-09 13:47:56 -05:00
chore: use cache in build-test GH workflow (#41)
* chore: Cache node deps in GH build-test workflow * Bump actions versions
This commit is contained in:
11
.github/workflows/build-and-test.yml
vendored
11
.github/workflows/build-and-test.yml
vendored
@@ -8,10 +8,13 @@ jobs:
|
||||
node: ['16.x']
|
||||
name: Node ${{ matrix.node }} build
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
- name: Setup node
|
||||
uses: actions/setup-node@v2
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ matrix.node }}
|
||||
- run: npm install
|
||||
- run: npm run test
|
||||
cache: 'npm'
|
||||
- name: Install dependencies
|
||||
run: npm install --silent
|
||||
- name: Test
|
||||
run: npm run test
|
||||
|
||||
Reference in New Issue
Block a user