Skip to content

Commit b8d6050

Browse files
committed
Update apt before running GitLab tests
Apt cache may be outdated.
1 parent c2065cb commit b8d6050

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/develop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
# GutHub environment claims it's user is root. Doesn't look so.
1717
# Use of 'sudo' and some tweaks are necessary.
1818
- name: Prepare environment
19-
run: sudo ./prepare_debian_environment.sh && sudo chmod o+r "$(readlink -f /boot/vmlinuz)" && sudo chmod 0666 /dev/kvm
19+
run: sudo apt update && sudo ./prepare_debian_environment.sh && sudo chmod o+r "$(readlink -f /boot/vmlinuz)" && sudo chmod 0666 /dev/kvm
2020

2121
- name: Run linter
2222
run: make lint

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
# GutHub environment claims it's user is root. Doesn't look so.
1515
# Use of 'sudo' and some tweaks are necessary.
1616
- name: Prepare environment
17-
run: sudo ./prepare_debian_environment.sh && sudo chmod o+r "$(readlink -f /boot/vmlinuz)" && sudo chmod 0666 /dev/kvm
17+
run: sudo apt update && sudo ./prepare_debian_environment.sh && sudo chmod o+r "$(readlink -f /boot/vmlinuz)" && sudo chmod 0666 /dev/kvm
1818

1919
- name: Run linter
2020
run: make lint

0 commit comments

Comments
 (0)