Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #40

Merged
merged 5 commits into from
Jun 25, 2024
Merged

Dev #40

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
run: npm run lint

test-action:
name: GitHub Actions Test
name: GitHub Actions Test (Linux)
runs-on: ubuntu-latest

steps:
Expand All @@ -65,10 +65,18 @@ jobs:

- name: Test Local Action
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 build cache (full cache)
run: ./check-full-turbo.sh

test-action-windows:
name: GitHub Actions Test (Windows)
runs-on: windows-latest
Expand All @@ -91,6 +99,14 @@ jobs:

- name: Test Local Action
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 build cache (full cache)
run: ./check-full-turbo.sh
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Add this to your GitHub Actions workflow, **before** running `turbo build`.
<!-- prettier-ignore -->
```yaml
- name: Cache for Turbo
uses: rharkor/caching-for-turbo@v1.4
uses: rharkor/caching-for-turbo@v1.5
```

The action will:
Expand Down
10 changes: 10 additions & 0 deletions check-full-turbo.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

# Run the test and capture the output
npm run test | tee test-output.log

# Check if the output contains "FULL TURBO"
if ! grep -q "FULL TURBO" test-output.log; then
echo "FULL TURBO not found in output"
exit 1
fi
6 changes: 5 additions & 1 deletion dist/post/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/post/index.js.map

Large diffs are not rendered by default.

15 changes: 11 additions & 4 deletions dist/setup/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/setup/index.js.map

Large diffs are not rendered by default.