-
Notifications
You must be signed in to change notification settings - Fork 7
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
Tweaked workflows #970
Changes from all commits
f7ca5bb
03a3e46
3b63da4
b11c682
a6cd9b4
441bbf5
4087d27
4855d8d
a4759c0
b8282f2
e08c316
084f0aa
fbd82d8
c30689d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,9 @@ jobs: | |
# continue-on-error: true | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# - uses: ./.github/workflows/setupgo118amd64 | ||
# - uses: actions/setup-go@v4 | ||
# with: | ||
# go-version-file: 'go.mod' | ||
# - name: golangci-lint | ||
# uses: golangci/golangci-lint-action@v3 | ||
# with: | ||
|
@@ -27,25 +29,14 @@ jobs: | |
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ./.github/workflows/setupgo118amd64 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version-file: 'go.mod' | ||
- 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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why are we removing this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The tests don't use it There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It saves us 2 minutes on each run now There was a problem hiding this comment. Choose a reason for hiding this commentThe 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... |
||
run: | | ||
git clone https://github.com/canonical/candid.git ./tmp/candid | ||
cd ./tmp/candid | ||
DOCKER_BUILDKIT=1 \ | ||
docker build \ | ||
--cache-from candid:latest \ | ||
. -f ./Dockerfile -t candid | ||
docker image ls candid | ||
- name: Add volume files | ||
run: | | ||
touch ./local/vault/approle.json | ||
touch ./local/vault/roleid.txt | ||
- name: Start test environment | ||
run: docker compose up -d | ||
- name: Build and Test | ||
|
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module github.com/canonical/jimm | ||
|
||
go 1.18 | ||
go 1.20 | ||
|
||
require ( | ||
github.com/canonical/candid v1.12.2 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better