forked from abeyuya/actions-mention-to-slack
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (29 loc) · 666 Bytes
/
test.yml
File metadata and controls
31 lines (29 loc) · 666 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Test
on:
push:
branches:
- "**"
paths:
- "src/**"
- "__tests__/**"
- "*.js"
- "*.json"
- ".github/workflows/test.yml"
jobs:
jest:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: "12.13.1"
- name: Cache npm
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-
- run: npm install
- run: npm run test -- --coverage