Skip to content

Commit

Permalink
Update synax on content-sources-action
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrewgdewar committed Jan 31, 2025
1 parent 2be3646 commit db995fc
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/content-sources-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit db995fc

Please sign in to comment.