Skip to content

Commit

Permalink
Merge pull request #40 from rharkor/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
rharkor authored Jun 25, 2024
2 parents 49518c3 + aac773e commit 439abec
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 9 deletions.
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.

0 comments on commit 439abec

Please sign in to comment.