mirror of
https://github.com/kremalicious/location.git
synced 2024-11-22 18:00:16 +01:00
32 lines
562 B
YAML
32 lines
562 B
YAML
|
name: 'CI'
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- 'main'
|
||
|
pull_request:
|
||
|
branches:
|
||
|
- '**'
|
||
|
|
||
|
jobs:
|
||
|
test:
|
||
|
runs-on: ubuntu-latest
|
||
|
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
|
||
|
- name: Setup Node.js
|
||
|
uses: actions/setup-node@v2
|
||
|
with:
|
||
|
node-version: '14'
|
||
|
|
||
|
- name: Cache node modules
|
||
|
uses: actions/cache@v2
|
||
|
with:
|
||
|
path: ~/.npm
|
||
|
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||
|
restore-keys: ${{ runner.os }}-node-
|
||
|
|
||
|
- run: npm ci
|
||
|
- run: npm test
|