diff options
author | Daniel Doubrovkine (dB.) <dblock@dblock.org> | 2022-03-26 12:57:21 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-26 12:57:21 -0400 |
commit | c297afb13bec5cefa69f75f905e6db9879a44a2e (patch) | |
tree | 699b9b2101920b17d33c5694829dc2342c86e9ee | |
parent | 3e57eb531f2d028cb56cd1ddab9bb07c70b93abf (diff) | |
parent | 92dc0845c567c851ef11edc7af734fce3ad4867b (diff) | |
download | hashie-c297afb13bec5cefa69f75f905e6db9879a44a2e.tar.gz |
Merge pull request #561 from dblock/ci-all-branches
Run CI on all branches.
-rw-r--r-- | .github/workflows/danger.yml | 21 | ||||
-rw-r--r-- | .github/workflows/test.yml (renamed from .github/workflows/main.yml) | 29 | ||||
-rw-r--r-- | README.md | 86 |
3 files changed, 64 insertions, 72 deletions
diff --git a/.github/workflows/danger.yml b/.github/workflows/danger.yml new file mode 100644 index 0000000..f6a2e5f --- /dev/null +++ b/.github/workflows/danger.yml @@ -0,0 +1,21 @@ +--- +name: danger +on: [pull_request] +jobs: + danger: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: 2.6 + bundler-cache: true + - name: Run Danger + run: | + bundle install + # the personal token is public, this is ok, base64 encode to avoid tripping Github + TOKEN=$(echo -n NWY1ZmM5MzEyMzNlYWY4OTZiOGU3MmI3MWQ3Mzk0MzgxMWE4OGVmYwo= | base64 --decode) + DANGER_GITHUB_API_TOKEN=$TOKEN bundle exec danger --verbose
\ No newline at end of file diff --git a/.github/workflows/main.yml b/.github/workflows/test.yml index 229eafc..b3f478f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/test.yml @@ -1,34 +1,7 @@ name: CI - -on: - push: - branches: - - master - pull_request: - branches: - - master +on: [push, pull_request] jobs: - danger: - runs-on: ubuntu-latest - if: ${{ github.event_name == 'pull_request' }} - steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - uses: ruby/setup-ruby@v1 - with: - ruby-version: 2.7 - bundler-cache: true - - uses: MeilCli/danger-action@v5 - with: - danger_file: Dangerfile - danger_id: danger-pr - install_path: vendor/bundle - plugins_file: Gemfile - env: - DANGER_GITHUB_API_TOKEN: ${{ secrets.github_token }} - integration-test: runs-on: ubuntu-latest steps: @@ -2,55 +2,53 @@ [![Join the chat at https://gitter.im/hashie/hashie](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/hashie/hashie?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Gem Version](http://img.shields.io/gem/v/hashie.svg)](http://badge.fury.io/rb/hashie) -[![Build Status](https://github.com/hashie/hashie/actions/workflows/main.yml/badge.svg)](https://github.com/hashie/hashie/actions/workflows/main.yml) +[![Build Status](https://github.com/hashie/hashie/actions/workflows/test.yml/badge.svg)](https://github.com/hashie/hashie/actions/workflows/test.yml) [![eierlegende Wollmilchsau](./mascot.svg)](#mascot) Hashie is a growing collection of tools that extend Hashes and make them more useful. # Table of Contents -- [Hashie](#hashie) -- [Table of Contents](#table-of-contents) - - [Installation](#installation) - - [Stable Release](#stable-release) - - [Hash Extensions](#hash-extensions) - - [Logging](#logging) - - [Coercion](#coercion) - - [Coercing Collections](#coercing-collections) - - [Coercing Hashes](#coercing-hashes) - - [Coercing Core Types](#coercing-core-types) - - [Coercion Proc](#coercion-proc) - - [A note on circular coercion](#a-note-on-circular-coercion) - - [KeyConversion](#keyconversion) - - [MergeInitializer](#mergeinitializer) - - [MethodAccess](#methodaccess) - - [MethodAccessWithOverride](#methodaccesswithoverride) - - [MethodOverridingInitializer](#methodoverridinginitializer) - - [IndifferentAccess](#indifferentaccess) - - [IgnoreUndeclared](#ignoreundeclared) - - [DeepMerge](#deepmerge) - - [DeepFetch](#deepfetch) - - [DeepFind](#deepfind) - - [DeepLocate](#deeplocate) - - [StrictKeyAccess](#strictkeyaccess) - - [Mash](#mash) - - [KeepOriginalKeys](#keeporiginalkeys) - - [PermissiveRespondTo](#permissiverespondto) - - [SafeAssignment](#safeassignment) - - [SymbolizeKeys](#symbolizekeys) - - [DefineAccessors](#defineaccessors) - - [Dash](#dash) - - [Potential Gotchas](#potential-gotchas) - - [PropertyTranslation](#propertytranslation) - - [Mash and Rails 4 Strong Parameters](#mash-and-rails-4-strong-parameters) - - [Coercion](#coercion-1) - - [PredefinedValues](#predefinedvalues) - - [Trash](#trash) - - [Clash](#clash) - - [Rash](#rash) - - [Auto-Optimized](#auto-optimized) - - [Mascot](#mascot) - - [Contributing](#contributing) - - [Copyright](#copyright) +- [Installation](#installation) +- [Stable Release](#stable-release) +- [Hash Extensions](#hash-extensions) +- [Logging](#logging) + - [Coercion](#coercion) + - [Coercing Collections](#coercing-collections) + - [Coercing Hashes](#coercing-hashes) + - [Coercing Core Types](#coercing-core-types) + - [Coercion Proc](#coercion-proc) + - [A note on circular coercion](#a-note-on-circular-coercion) + - [KeyConversion](#keyconversion) + - [MergeInitializer](#mergeinitializer) + - [MethodAccess](#methodaccess) + - [MethodAccessWithOverride](#methodaccesswithoverride) + - [MethodOverridingInitializer](#methodoverridinginitializer) + - [IndifferentAccess](#indifferentaccess) + - [IgnoreUndeclared](#ignoreundeclared) + - [DeepMerge](#deepmerge) + - [DeepFetch](#deepfetch) + - [DeepFind](#deepfind) + - [DeepLocate](#deeplocate) +- [StrictKeyAccess](#strictkeyaccess) +- [Mash](#mash) + - [KeepOriginalKeys](#keeporiginalkeys) + - [PermissiveRespondTo](#permissiverespondto) + - [SafeAssignment](#safeassignment) + - [SymbolizeKeys](#symbolizekeys) + - [DefineAccessors](#defineaccessors) +- [Dash](#dash) + - [Potential Gotchas](#potential-gotchas) + - [PropertyTranslation](#propertytranslation) + - [Mash and Rails 4 Strong Parameters](#mash-and-rails-4-strong-parameters) + - [Coercion](#coercion-1) + - [PredefinedValues](#predefinedvalues) +- [Trash](#trash) +- [Clash](#clash) +- [Rash](#rash) + - [Auto-Optimized](#auto-optimized) +- [Mascot](#mascot) +- [Contributing](#contributing) +- [Copyright](#copyright) ## Installation |