fix(ci): handle missing go.sum gracefully
This commit is contained in:
parent
a1c87f8539
commit
b0bd48cf88
11
.github/workflows/ci_arch.yml
vendored
11
.github/workflows/ci_arch.yml
vendored
@ -11,12 +11,13 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: archlinux:latest
|
||||
env:
|
||||
CGO_ENABLED: "0"
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
pacman -Sy --noconfirm git base-devel go \
|
||||
gtk3 webkit2gtk
|
||||
pacman -Sy --noconfirm git base-devel go
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
@ -24,7 +25,11 @@ jobs:
|
||||
- name: Verify go.mod tidy
|
||||
run: |
|
||||
go mod tidy
|
||||
git diff --exit-code go.mod go.sum
|
||||
if [ -f go.sum ]; then
|
||||
git diff --exit-code go.mod go.sum
|
||||
else
|
||||
git diff --exit-code go.mod
|
||||
fi
|
||||
- name: Build
|
||||
run: go build ./...
|
||||
- name: Test
|
||||
|
||||
Loading…
Reference in New Issue
Block a user