-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update synax on content-sources-action
- Loading branch information
1 parent
2be3646
commit db995fc
Showing
1 changed file
with
10 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,14 +44,15 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v4 | ||
|
||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: "1.23" | ||
|
||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v6 | ||
with: | ||
version: v1.61.0 | ||
skip-go-installation: true | ||
args: --timeout=5m | ||
|
||
checkmigrations: | ||
|
@@ -121,21 +122,25 @@ jobs: | |
CLIENTS_CANDLEPIN_USERNAME: admin | ||
CLIENTS_CANDLEPIN_PASSWORD: admin | ||
CLIENTS_CANDLEPIN_DEVEL_ORG: true | ||
|
||
- name: Add hosts to /etc/hosts | ||
run: | | ||
# allows pulp container to talk to the host at this hostname | ||
sudo echo "172.17.0.1 pulp.content" | sudo tee -a /etc/hosts | ||
- name: start pulp | ||
uses: isbang/[email protected] | ||
with: | ||
compose-file: docker-compose.yml | ||
cwd: ./compose_files/pulp/ | ||
down-flags: --volumes | ||
|
||
- name: Wait for pulp | ||
run: | | ||
docker run --network=host --rm -v ${PWD}:/local curlimages/curl \ | ||
curl --retry-all-errors --fail --retry-delay 10 --retry 32 --retry-max-time 240 http://localhost:8080/api/pulp/default/api/v3/repositories/rpm/rpm/ -u admin:password | ||
sleep 30 | ||
- name: start candlepin | ||
uses: isbang/[email protected] | ||
with: | ||
|
@@ -146,11 +151,13 @@ jobs: | |
down-flags: --volumes | ||
env: | ||
CONTENT_DATABASE_PORT: 5434 | ||
|
||
- name: Wait for candlepin | ||
run: | | ||
docker run --network=host --rm -v ${PWD}:/local curlimages/curl \ | ||
curl --retry-all-errors --fail --retry-delay 10 --retry 32 --retry-max-time 240 http://localhost:8181/candlepin/owners -u admin:admin | ||
sleep 30 | ||
- name: integration tests | ||
run: | | ||
go run cmd/candlepin/main.go init | ||
|
@@ -173,6 +180,7 @@ jobs: | |
CLIENTS_CANDLEPIN_USERNAME: admin | ||
CLIENTS_CANDLEPIN_PASSWORD: admin | ||
CLIENTS_CANDLEPIN_DEVEL_ORG: true | ||
|
||
- name: db migration tests | ||
run: | | ||
make test-db-migrations | ||
|