Merge pull request #3 from TaopaiC/patch/encode_path #11
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
name: Ruby | |
on: | |
push: | |
paths-ignore: | |
- 'README.md' | |
- 'CHANGELOG.md' | |
pull_request: | |
branches: [ master ] | |
paths-ignore: | |
- 'README.md' | |
- 'CHANGELOG.md' | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
# https://endoflife.date/ruby | |
ruby: ['2.7', '3.0', '3.1', '3.2'] | |
vault: ['1.13.13', '1.15.5', '1.17.6'] | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
- name: "Install vault cli" | |
run: | | |
curl -sLo vault.zip "https://releases.hashicorp.com/vault/${{ matrix.vault }}/vault_${{ matrix.vault }}_linux_amd64.zip" | |
unzip vault.zip | |
mkdir -p "$HOME/bin" | |
mv vault "$HOME/bin" | |
echo "$HOME/bin" >> "$GITHUB_PATH" | |
- run: bundle exec rake | |
- name: Publish code coverage | |
if: ${{ success() && env.CC_TEST_REPORTER_ID }} | |
uses: paambaati/[email protected] | |
env: | |
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | |
permissions: | |
contents: read |