fix: run update before install

Signed-off-by: Vitor Mattos <vitor@php.rio>
This commit is contained in:
Vitor Mattos 2025-04-11 09:29:57 -03:00
parent e0095cc320
commit 9d120496c1
No known key found for this signature in database
GPG key ID: B7AB4B76A7CA7318
10 changed files with 17 additions and 8 deletions

View file

@ -69,7 +69,7 @@ jobs:
echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
- name: Install system dependencies
run: sudo apt install poppler-utils
run: sudo apt update && sudo apt install poppler-utils
- name: Checkout server
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

View file

@ -86,7 +86,7 @@ jobs:
echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
- name: Install system dependencies
run: sudo apt install poppler-utils
run: sudo apt update && sudo apt install poppler-utils
- name: Checkout server
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

View file

@ -85,7 +85,7 @@ jobs:
echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
- name: Install system dependencies
run: sudo apt install poppler-utils
run: sudo apt update && sudo apt install poppler-utils
- name: Checkout server
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

View file

@ -76,7 +76,7 @@ jobs:
echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
- name: Install system dependencies
run: sudo apt install poppler-utils
run: sudo apt update && sudo apt install poppler-utils
- name: Checkout server
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

View file

@ -90,7 +90,7 @@ jobs:
echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
- name: Install system dependencies
run: sudo apt install poppler-utils
run: sudo apt update && sudo apt install poppler-utils
- name: Checkout server
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

View file

@ -90,7 +90,7 @@ jobs:
echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
- name: Install system dependencies
run: sudo apt install poppler-utils
run: sudo apt update && sudo apt install poppler-utils
- name: Checkout server
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

View file

@ -91,7 +91,7 @@ jobs:
echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
- name: Install system dependencies
run: sudo apt install poppler-utils
run: sudo apt update && sudo apt install poppler-utils
- name: Checkout server
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

View file

@ -81,7 +81,7 @@ jobs:
echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
- name: Install system dependencies
run: sudo apt install poppler-utils
run: sudo apt update && sudo apt install poppler-utils
- name: Checkout server
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

View file

@ -401,6 +401,9 @@ final class ValidateHelperTest extends \OCA\Libresign\Tests\Unit\TestCase {
}
public function testValidateIfNodeIdExistsWithSuccess() {
$this->root
->method('getUserFolder')
->willReturn($this->root);
$this->root
->method('getById')
->willReturn(['file']);

View file

@ -374,6 +374,9 @@ final class AccountServiceTest extends \OCA\Libresign\Tests\Unit\TestCase {
->method('getMountsForFileId')
->willreturn([]);
$node = $this->createMock(\OCP\Files\File::class);
$this->root
->method('getUserFolder')
->willReturn($this->root);
$this->root
->method('getById')
->willReturn([$node]);
@ -391,6 +394,9 @@ final class AccountServiceTest extends \OCA\Libresign\Tests\Unit\TestCase {
->method('getMountsForFileId')
->willreturn([]);
$node = $this->createMock(\OCP\Files\File::class);
$this->root
->method('getUserFolder')
->willReturn($this->root);
$this->root
->method('getById')
->willReturn([$node]);