Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Merge pull request #14 from openameba/deprecated #63

Merge pull request #14 from openameba/deprecated

Merge pull request #14 from openameba/deprecated #63

Workflow file for this run

name: test
on:
- push
- pull_request
jobs:
test:
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Get npm cache directory
id: npm-cache-dir
run: |
echo "::set-output name=dir::$(npm config get cache)"
- uses: actions/cache@v3
id: npm-cache # use this to check for `cache-hit` ==> if: steps.npm-cache.outputs.cache-hit != 'true'
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm ci
- run: npm test