mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-06 19:54:39 +08:00
Action only installs node and dependencies when a changed file passes the filters
This commit is contained in:
parent
432fedb3c0
commit
f8727b5c68
2 changed files with 6 additions and 1 deletions
5
.github/workflows/pr-check.yml
vendored
5
.github/workflows/pr-check.yml
vendored
|
@ -35,7 +35,10 @@ jobs:
|
|||
- 'frontend/**/*.js'
|
||||
- 'frontend/**/*.ts'
|
||||
|
||||
- run: echo ${{ steps.filter.outputs.changes }}
|
||||
|
||||
- name: Cache node modules
|
||||
if: steps.filter.outputs.changes != '[]'
|
||||
uses: actions/cache@v2
|
||||
env:
|
||||
cache-name: cache-node-modules
|
||||
|
@ -48,11 +51,13 @@ jobs:
|
|||
${{ runner.os }}-
|
||||
|
||||
- name: Set up Node.js
|
||||
if: steps.filter.outputs.changes != '[]'
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: "16.13.2"
|
||||
|
||||
- name: Install dependencies
|
||||
if: steps.filter.outputs.changes != '[]'
|
||||
run: npm run install:all
|
||||
|
||||
# - name: Run webpack
|
||||
|
|
|
@ -12,7 +12,7 @@ async function main() {
|
|||
await admin.initializeApp({
|
||||
credential: admin.credential.cert(serviceAccount),
|
||||
});
|
||||
console.log("Database Connected");
|
||||
console.log("Database Connected!!");
|
||||
refactor();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue