-
Notifications
You must be signed in to change notification settings - Fork 292
Automatically retry with correct content-type #569
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
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
b69ede5
Automatically retry with correct content-type
trevor-vaughan 535a59e
Add GitHub Actions
trevor-vaughan 29a324a
cache podman and rootless queries
trevor-vaughan e600a41
update cane
trevor-vaughan 48c9a9d
additional cane updates
trevor-vaughan cc66ed1
cache in connection
trevor-vaughan 0ddf338
more flexible docker install test
trevor-vaughan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--abc-max 19 | ||
--style-measure 100 | ||
--abc-max 30 | ||
--style-measure 120 |
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,82 @@ | ||
name: Unit Tests | ||
on: | ||
push: | ||
branches: | ||
# A test branch for seeing if your tests will pass in your personal fork | ||
- test_me_github | ||
pull_request: | ||
branches: | ||
- main | ||
- master | ||
jobs: | ||
docker-rspec: | ||
runs-on: | ||
- ubuntu-18.04 | ||
strategy: | ||
matrix: | ||
ruby: | ||
- 2.7 | ||
- 2.6 | ||
- 2.5 | ||
- 2.4 | ||
docker_version: | ||
- ':20.' | ||
- ':19.' | ||
- ':18.' | ||
fail-fast: true | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
- name: install bundler | ||
run: | | ||
gem install bundler -v '~> 1.17.3' | ||
bundle update | ||
- name: install docker | ||
env: | ||
DOCKER_VERSION: ${{ matrix.docker_version }} | ||
run: | | ||
set -x | ||
sudo apt-get remove -y docker docker-engine docker.io containerd runc ||: | ||
sudo apt-get update -y | ||
sudo apt-get install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common | ||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | ||
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | ||
sudo apt-get update -y | ||
sudo apt-cache gencaches | ||
sudo apt-get install -y docker-ce=$( apt-cache madison docker-ce | grep -e $DOCKER_VERSION | cut -f 2 -d '|' | head -1 | sed 's/\s//g' ) | ||
if [ $? -ne 0 ]; then | ||
echo "Error: Could not install ${DOCKER_VERSION}" | ||
echo "Available docker versions:" | ||
apt-cache madison docker-ce | ||
exit 1 | ||
fi | ||
sudo systemctl start docker | ||
- name: spec tests | ||
run: bundle exec rake | ||
|
||
podman-rspec: | ||
runs-on: | ||
- ubuntu-latest | ||
strategy: | ||
matrix: | ||
ruby: | ||
- 2.7 | ||
- 2.6 | ||
- 2.5 | ||
- 2.4 | ||
fail-fast: true | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
- name: install bundler | ||
run: | | ||
gem install bundler -v '~> 1.17.3' | ||
bundle update | ||
- name: install podman | ||
run: sudo ./script/install_podman.sh | ||
- name: spec tests | ||
run: bundle exec rake |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/sh | ||
set -ex | ||
|
||
. /etc/os-release | ||
|
||
curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/Release.key | sudo apt-key add - | ||
|
||
echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_18.04/ /" > /etc/apt/sources.list.d/podman.list | ||
|
||
apt-get update | ||
|
||
apt-get install -y podman |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.