Skip to content

Commit

Permalink
ci: gh cache and ignore some paths (#893)
Browse files Browse the repository at this point in the history
* ci: gh cache and ignore some paths

* Update .github/workflows/continuous-integration.yml
  • Loading branch information
Jolg42 authored Sep 30, 2021
1 parent 6443f7d commit ee9d556
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
name: CI tests

on: [pull_request]
on:
pull_request:
paths-ignore:
- 'LICENSE'
- 'README.md'
- 'SECURITY.md'
- '.vscode/**'
- '.github/ISSUE_TEMPLATE/**'
- '.github/CODEOWNERS'

env:
PRISMA_TELEMETRY_INFORMATION: 'language-tools continuous-integration.yml'
Expand All @@ -14,6 +21,18 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install Dependencies
run: npm install
- name: Compile
Expand Down

0 comments on commit ee9d556

Please sign in to comment.