mirror of
https://github.com/rharkor/caching-for-turbo.git
synced 2025-06-09 17:44:48 +09:00
refactor: ci
This commit is contained in:
parent
6d52157479
commit
cd391dc887
1 changed files with 34 additions and 2 deletions
36
.github/workflows/ci.yml
vendored
36
.github/workflows/ci.yml
vendored
|
@ -63,12 +63,28 @@ jobs:
|
|||
id: npm-ci
|
||||
run: npm ci
|
||||
|
||||
- name: Test Local Action
|
||||
- name: Test Local Action (no cache)
|
||||
uses: ./
|
||||
with:
|
||||
# Use a unique cache prefix for each pipeline & job
|
||||
cache-prefix:
|
||||
${{ runner.os }}-${{ github.run_id }}-${{ github.run_number }}-${{
|
||||
runner.os }}
|
||||
|
||||
- name: Test build cache
|
||||
run: npm run test
|
||||
|
||||
- name: Test Local Action (with cache)
|
||||
uses: ./
|
||||
with:
|
||||
# Use a unique cache prefix for each pipeline & job
|
||||
cache-prefix:
|
||||
${{ runner.os }}-${{ github.run_id }}-${{ github.run_number }}-${{
|
||||
runner.os }}
|
||||
|
||||
- name: Test build cache (full cache)
|
||||
run: npm run test
|
||||
|
||||
test-action-windows:
|
||||
name: GitHub Actions Test (Windows)
|
||||
runs-on: windows-latest
|
||||
|
@ -89,8 +105,24 @@ jobs:
|
|||
id: npm-ci
|
||||
run: npm ci
|
||||
|
||||
- name: Test Local Action
|
||||
- name: Test Local Action (no cache)
|
||||
uses: ./
|
||||
with:
|
||||
# Use a unique cache prefix for each pipeline & job
|
||||
cache-prefix:
|
||||
${{ runner.os }}-${{ github.run_id }}-${{ github.run_number }}-${{
|
||||
runner.os }}
|
||||
|
||||
- name: Test build cache
|
||||
run: npm run test
|
||||
|
||||
- name: Test Local Action (with cache)
|
||||
uses: ./
|
||||
with:
|
||||
# Use a unique cache prefix for each pipeline & job
|
||||
cache-prefix:
|
||||
${{ runner.os }}-${{ github.run_id }}-${{ github.run_number }}-${{
|
||||
runner.os }}
|
||||
|
||||
- name: Test build cache (full cache)
|
||||
run: npm run test
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue