Skip to content

Commit

Permalink
Merge branch 'master' into replies_deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
mathroule committed Sep 19, 2023
2 parents 273a9bc + 905e742 commit 41dc677
Show file tree
Hide file tree
Showing 135 changed files with 1,508 additions and 831 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ jobs:
docker:
- image: ruby:2.7
environment:
- RAILS_ENV=test
- RACK_ENV=test
- RAILS_ENV=test
- RACK_ENV=test
steps:
- checkout
- run: gem update --system 2.5.0
Expand Down
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: "weekly"
19 changes: 15 additions & 4 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,20 @@ jobs:
build:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
ruby-version: [2.7, 3.0, 3.1]
os:
- macos-latest
- ubuntu-latest
- windows-latest
ruby-version:
- "2.7"
- "3.0"
- "3.1"
- "3.2"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1

- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
Expand All @@ -30,6 +38,9 @@ jobs:
git config --global user.email "orta+dangersystems@artsy.net"
git config --global user.name "Danger.Systems"
- name: Linting
run: bundle exec rubocop

- name: Running Tests
run: bundle exec rake spec

Expand Down
47 changes: 47 additions & 0 deletions .github/workflows/publish_package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Release Danger package

on:
push:
branches:
- 'master'
tags:
- '*'

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Docker metadata
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=ref,event=branch
type=ref,event=tag
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ junit-results.xml
# RSpec
/spec/examples.txt

# test-queue
.test_queue_stats

# Byebug
/.byebug_history

Expand Down
7 changes: 7 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
inherit_from: .rubocop_todo.yml

inherit_mode:
merge:
- Exclude

# Defaults can be found here: https://github.com/bbatsov/rubocop/blob/master/config/default.yml

AllCops:
TargetRubyVersion: 2.7
Exclude:
- 'spec/fixtures/**/*'
- 'lib/danger/plugin_support/plugin_parser.rb'
NewCops: disable

Style/StringLiterals:
EnforcedStyle: double_quotes
Expand Down
Loading

0 comments on commit 41dc677

Please sign in to comment.