Skip to content

Commit

Permalink
Split the test for artifact.go from main to check-artifacts
Browse files Browse the repository at this point in the history
Signed-off-by: Tomoki Sugiura <[email protected]>
  • Loading branch information
chez-shanpu committed Feb 19, 2025
1 parent 023a13b commit 338549b
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,16 @@ jobs:
- setup-tools
- run: time make deb SUDO="" FAKEROOT=
- run: time make tools SUDO="" FAKEROOT=
- run:
command: |
if [ "${CIRCLE_BRANCH}" != "main" ]; then
go install ./pkg/generate-artifacts/
generate-artifacts > /tmp/artifacts.go
diff -u artifacts.go /tmp/artifacts.go
fi

build_artifacts:
docker:
- image: ghcr.io/cybozu/golang:1.23-jammy
working_directory: /work
steps:
- checkout
- run: go install ./pkg/generate-artifacts/
- run: generate-artifacts > artifacts.go
- run: git diff --exit-code artifacts.go

build_release:
docker:
Expand Down Expand Up @@ -448,6 +451,15 @@ workflows:
- release
- main

check-artifacts:
jobs:
- build_artifacts:
filters:
branches:
ignore:
- release
- main

manual-reboot:
jobs:
- hold:
Expand Down

0 comments on commit 338549b

Please sign in to comment.