Skip to content

Commit

Permalink
Speedup CI (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
dej611 authored Mar 31, 2021
1 parent 79944e1 commit 5314873
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@ jobs:

steps:
- uses: actions/checkout@v2

- name: Use Node.js 12.16.1
uses: actions/setup-node@v1
with:
node-version: 12.16.1

- name: Installing dependencies
run: npm install
run: npm ci

- name: Build and deploy to Github Pages
run: npm run predeploy
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/ssr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,21 @@ jobs:

steps:
- uses: actions/checkout@v2

- name: Use Node.js 12.16.1
uses: actions/setup-node@v1
with:
node-version: 12.16.1

- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Installing dependencies
run: npm install
run: npm ci

- name: Build the library
run: npm run build:ts
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,21 @@ jobs:

steps:
- uses: actions/checkout@v2

- name: Use Node.js 12.16.1
uses: actions/setup-node@v1
with:
node-version: 12.16.1

- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Installing dependencies
run: npm install
run: npm ci

- name: Test
run: npm test

0 comments on commit 5314873

Please sign in to comment.