Skip to content
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

add dependabot and test automation #19

Merged
merged 1 commit into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
open-pull-requests-limit: 20
schedule:
interval: "daily"
time: "09:00"
timezone: "America/New_York"
commit-message:
prefix: "[github-actions] "
- package-ecosystem: "bundler"
directory: "/"
schedule:
interval: "daily"
time: "08:30"
timezone: "America/New_York"
allow:
- dependency-type: "all"
versioning-strategy: increase
open-pull-requests-limit: 20
insecure-external-code-execution: deny
commit-message:
prefix: "[bundler] "
23 changes: 23 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: build
on:
pull_request:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not fail-fast? (just curious, I don't know much about minitest)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://www.edwardthomson.com/blog/github_actions_6_fail_fast_matrix_workflows.html

if we test more than one ruby, we want them all to finish so we can see results (vs stop after first one fails) as they run in parallel

Copy link

@emmahyde emmahyde Apr 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ooooh, very cool! TIL GHA matrices.
I interpreted "fail-fast" as a configuration for each test, where if 1 assertion fails, it either does or does not test the rest of the assertions. Thanks for the clarification!

matrix:
ruby-version: [3.2.2]
experimental: [false]
steps:
- uses: actions/checkout@v4
with:
show-progress: 'false'
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs `bundle install` and caches installed gems automatically
- run: bundle exec rake