-
-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: dblock <dblock@dblock.org>
- Loading branch information
Showing
6 changed files
with
100 additions
and
49 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
name: danger | ||
on: [pull_request] | ||
jobs: | ||
danger: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.6 | ||
bundler-cache: true | ||
- name: Run Danger | ||
run: | | ||
# 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 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
name: test | ||
on: [push, pull_request] | ||
jobs: | ||
lint: | ||
name: RuboCop | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.7 | ||
bundler-cache: true | ||
- name: Run RuboCop | ||
run: bundle exec rubocop |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
name: test | ||
on: [push, pull_request] | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
entry: | ||
- { ruby: 2.6.2, mongoid: 6.4.8, mongodb: 4.4 } | ||
- { ruby: 2.6.2, mongoid: 7.2.3, mongodb: 4.4 } | ||
- { ruby: 2.6.2, mongoid: 7.3.0, mongodb: 4.4 } | ||
name: test (ruby=${{ matrix.entry.ruby }}, mongoid=${{ matrix.entry.mongoid }}, mongodb=${{ matrix.entry.mongodb }}) | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.entry.ruby }} | ||
- uses: browser-actions/setup-geckodriver@latest | ||
- run: geckodriver --version | ||
- uses: supercharge/mongodb-github-action@1.7.0 | ||
with: | ||
mongodb-version: ${{ matrix.entry.mongodb }} | ||
- name: Test | ||
uses: GabrielBB/xvfb-action@v1 | ||
env: | ||
DATABASE_ADAPTER: mongoid | ||
MONGOID_VERSION: ${{ matrix.entry.mongoid }} | ||
with: | ||
run: | | ||
bundle install | ||
bundle exec rake spec |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
name: test | ||
on: [push, pull_request] | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
entry: | ||
- { ruby: 2.6.2, postgresql: 11 } | ||
name: test (ruby=${{ matrix.entry.ruby }}, postgresql=${{ matrix.entry.postgresql }}) | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.entry.ruby }} | ||
- uses: browser-actions/setup-geckodriver@latest | ||
- run: geckodriver --version | ||
- uses: harmon758/postgresql-action@v1 | ||
with: | ||
postgresql version: ${{ matrix.entry.postgresql }} | ||
postgresql db: slack_ruby_bot_server_test | ||
postgresql user: test | ||
postgresql password: password | ||
- name: Test | ||
uses: GabrielBB/xvfb-action@v1 | ||
env: | ||
DATABASE_ADAPTER: activerecord | ||
DATABASE_URL: postgres://test:password@localhost/slack_ruby_bot_server_test | ||
with: | ||
run: | | ||
bundle install | ||
bundle exec rake spec |
This file was deleted.
Oops, something went wrong.
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