forked from internetarchive/openlibrary
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (30 loc) · 1.04 KB
/
javascript_tests.yml
File metadata and controls
30 lines (30 loc) · 1.04 KB
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
name: javascript_tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
javascript_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14' # # Should match what's in our Dockerfile
- uses: actions/cache@v2
with:
# Caching node_modules isn't recommended because it can break across
# Node versions and won't work with npm ci (See https://github.com/actions/cache/blob/main/examples.md#node---npm )
# But we pin the node version, and we don't update it that often anyways. And
# we don't use `npm ci` specifically to try to get faster CI flows. So caching
# `node_modules` directly.
path: 'node_modules'
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
- run: npm install
- run: npm run lint
- run: make git
- run: make js
- run: make css
- run: make components
- run: npm run test