-
Notifications
You must be signed in to change notification settings - Fork 16
build: review broken CI tests #138
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
Changes from all commits
809154d
2460cca
412b9af
6c2cd92
82a2b53
4f6d2fb
44338a3
97d50f3
4d1387f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -22,9 +22,16 @@ runs: | |||||||||||||||||||
| bundler-cache: true | ||||||||||||||||||||
| cache-version: ${{ inputs.ruby-cache-version }}-v1 | ||||||||||||||||||||
|
|
||||||||||||||||||||
| - run: sudo apt-get -qq update | ||||||||||||||||||||
| shell: bash | ||||||||||||||||||||
|
|
||||||||||||||||||||
| - name: Install and cache vips | ||||||||||||||||||||
| if: ${{ inputs.cache-apt-packages == 'true' }} | ||||||||||||||||||||
| uses: awalsh128/cache-apt-pkgs-action@latest | ||||||||||||||||||||
| with: | ||||||||||||||||||||
| packages: libvips libglib2.0-0 libglib2.0-dev libwebp-dev libvips42 libpng-dev | ||||||||||||||||||||
| version: tests-v1 | ||||||||||||||||||||
| version: tests-v2 | ||||||||||||||||||||
|
|
||||||||||||||||||||
| # fallback if cache version is outdated | ||||||||||||||||||||
| - run: sudo apt-get -qq install libvips | ||||||||||||||||||||
| shell: bash | ||||||||||||||||||||
|
Comment on lines
+35
to
+37
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Improve fallback installation reliability The fallback installation should update package lists before installing to ensure we don't hit stale package versions. # fallback if cache version is outdated
- - run: sudo apt-get -qq install libvips
+ - name: Fallback libvips installation
+ run: |
+ sudo apt-get -qq update
+ sudo apt-get -qq install libvips
shell: bash📝 Committable suggestion
Suggested change
|
||||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -69,6 +69,7 @@ jobs: | |
|
|
||
|
|
||
| - uses: ./.github/actions/upload-screenshots | ||
| if: failure() | ||
| with: | ||
| name: base-screenshots | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Optimize apt-get update execution
The apt update should only run when we're not using cached packages or when the cache miss occurs.
📝 Committable suggestion