Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweaked workflows #970

Merged
merged 14 commits into from
Jul 19, 2023
Merged

Tweaked workflows #970

merged 14 commits into from
Jul 19, 2023

Conversation

kian99
Copy link
Contributor

@kian99 kian99 commented Jun 27, 2023

Description

Testing some changes to the workflows and am finally happy with it. The full changes for this PR are as below.

  • Upgraded to v4 of the go-setup action which enables caching by default and removed the need for the setupgo18 action since all JIMM dependencies are public anyway.
  • Removed the spinning up of Candid in the CI and moved all the docker compose services to the dev profile because they do not play a part in testing.

@kian99 kian99 requested review from alesstimec and ale8k and removed request for alesstimec July 18, 2023 06:26
@kian99 kian99 assigned babakks and mina1460 and unassigned babakks and mina1460 Jul 18, 2023
@@ -27,25 +29,14 @@ jobs:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: ./.github/workflows/setupgo118amd64
- uses: actions/setup-go@v4
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better

- name: Install dependencies
run: sudo apt-get update -y && sudo apt-get install -y gcc git-core gnupg build-essential
- name: Remove installed mongodb
run: sudo apt purge mongodb-org && sudo apt autoremove
- run: sudo snap install juju-db --channel 4.4/stable
- name: Pull candid repo for test environment
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we removing this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tests don't use it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It saves us 2 minutes on each run now

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah I'm with you, we use a test candid, I think I left this here in hopes we would run acceptance tests eventually though...

Copy link
Contributor

@ale8k ale8k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, just the candid thing we may need to put back in later or in a different workflow

@kian99
Copy link
Contributor Author

kian99 commented Jul 19, 2023

lgtm, just the candid thing we may need to put back in later or in a different workflow

@ale8k For the BDD tests we would need it but not these tests.

@kian99 kian99 merged commit 31e97bf into canonical:main Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants