diff options
author | dblock <dblock@dblock.org> | 2022-03-25 09:54:00 -0400 |
---|---|---|
committer | dblock <dblock@dblock.org> | 2022-03-25 10:03:09 -0400 |
commit | 7a9c4a7d41fc57d7b323b5556988e5d2b482af28 (patch) | |
tree | 3c40249be862aae1cf54a742048fc3a567f741d8 /.github/workflows | |
parent | 43b476a34265648d86339874e6d41234fa015e06 (diff) | |
download | hashie-7a9c4a7d41fc57d7b323b5556988e5d2b482af28.tar.gz |
Move danger into its own workflow file.
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/danger.yml | 26 | ||||
-rw-r--r-- | .github/workflows/test.yml (renamed from .github/workflows/main.yml) | 20 |
2 files changed, 26 insertions, 20 deletions
diff --git a/.github/workflows/danger.yml b/.github/workflows/danger.yml new file mode 100644 index 0000000..fcc506f --- /dev/null +++ b/.github/workflows/danger.yml @@ -0,0 +1,26 @@ +name: CI +on: + pull_request: + branches: + - master + +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.5.0 + with: + danger_file: Dangerfile + danger_id: danger-pr + install_path: vendor/bundle + plugins_file: Gemfile + env: + DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file diff --git a/.github/workflows/main.yml b/.github/workflows/test.yml index 415514f..b3f478f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/test.yml @@ -2,26 +2,6 @@ name: CI 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: |