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

ci: clear unused tools before dagger runs #3362

Merged
merged 1 commit into from
Aug 8, 2024
Merged
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
45 changes: 45 additions & 0 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,21 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Free Disk Space
uses: jlumbroso/free-disk-space@v1.3.1
with:
# Runs quick, run rm in background
tool-cache: true

# These run slower as use apt to uninstall packages
# Turned on by default, so we disable them
android: false
dotnet: false
haskell: false
large-packages: false
docker-images: false
swap-storage: false

- name: Run CLI Tests
uses: dagger/dagger-for-github@v6
with:
Expand Down Expand Up @@ -62,6 +77,21 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Free Disk Space
uses: jlumbroso/free-disk-space@v1.3.1
with:
# Runs quick, run rm in background
tool-cache: true

# These run slower as use apt to uninstall packages
# Turned on by default, so we disable them
android: false
dotnet: false
haskell: false
large-packages: false
docker-images: false
swap-storage: false

- run: echo "INTEGRATION_TEST_NAME=${{ matrix.test }}" | tr '/' '-' >> $GITHUB_ENV

- name: Run Integration Tests
Expand All @@ -88,6 +118,21 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Free Disk Space
uses: jlumbroso/free-disk-space@v1.3.1
with:
# Runs quick, run rm in background
tool-cache: true

# These run slower as use apt to uninstall packages
# Turned on by default, so we disable them
android: false
dotnet: false
haskell: false
large-packages: false
docker-images: false
swap-storage: false

- name: Run UI Tests
uses: dagger/dagger-for-github@v6
with:
Expand Down
33 changes: 31 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Delete unnecessary hosted tools
run: rm -rf /opt/hostedtoolcache

- name: Free Disk Space
uses: jlumbroso/free-disk-space@v1.3.1
with:
# Runs quick, run rm in background
tool-cache: true

# These run slower as use apt to uninstall packages
# Turned on by default, so we disable them
android: false
dotnet: false
haskell: false
large-packages: false
docker-images: false
swap-storage: false

- name: Run Unit Tests
uses: dagger/dagger-for-github@v6
with:
Expand Down Expand Up @@ -79,6 +93,21 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Free Disk Space
uses: jlumbroso/free-disk-space@v1.3.1
with:
# Runs quick, run rm in background
tool-cache: true

# These run slower as use apt to uninstall packages
# Turned on by default, so we disable them
android: false
dotnet: false
haskell: false
large-packages: false
docker-images: false
swap-storage: false

- name: Run Migration Tests
uses: dagger/dagger-for-github@v6
with:
Expand Down
Loading