728x90
의존성 다운로드가 있을때는 Cache가 상당히 효과가 있다.
https://github.com/actions/cache
GitHub - actions/cache: Cache dependencies and build outputs in GitHub Actions
Cache dependencies and build outputs in GitHub Actions - actions/cache
github.com
- name: Load cached node_modules
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package.json') }}
이러한 프로세스 후에 npm install 이나 yarn install 하면 상당히 성능이 향상된다.
본 Step이 없을때 40초 이상
본 Step이 있을때 현저히 빨라진다.
'PaaS > CI CD' 카테고리의 다른 글
Github Actions) 나의 Github 계정에서 수행된 Actions History를 모두 수집해보자 (1) | 2024.03.03 |
---|---|
Github Actions) Workflow 자동실행 조건에 Tag와 Branch 모두 걸기 (0) | 2024.02.20 |
Github Actions) AutoScaling Runner Controller 아키텍처 설명 (0) | 2024.01.28 |
Github Actions) Github-hosted와 self-hosted runner의 차이점 (0) | 2024.01.03 |
(Gitlab) Merge Request시 delete source branch가 체크되어 있는 경우 (1) | 2023.12.14 |