Skip to content

Commit

Permalink
Merge 90054e0 into 310ac54
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzedge committed May 9, 2023
2 parents 310ac54 + 90054e0 commit 61dc5b7
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 51 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/codeql.yml
Expand Up @@ -13,10 +13,11 @@ name: CodeQL

on:
push:
branches: [ $default-branch ]
branches:
- master
pull_request:
# The branches below must be a subset of the branches above
branches: [ $default-branch ]
branches:
- master
schedule:
- cron: '45 10 * * 6'

Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/dependency-review.yml
Expand Up @@ -6,7 +6,12 @@
# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement
name: Dependency Review
on:
- pull_request
push:
branches:
- master
pull_request:
branches:
- master

permissions:
contents: read
Expand Down
32 changes: 26 additions & 6 deletions .github/workflows/ruby.yml
Expand Up @@ -2,14 +2,27 @@ name: Ruby

on:
push:
branches: [ $default-branch ]
branches:
- master
pull_request:
branches: [ $default-branch ]
branches:
- master

permissions:
contents: read

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.2
bundler-cache: true
- name: Lint
run: bundle exec rubocop
test:
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -46,9 +59,16 @@ jobs:
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Lint
run: rubocop
- name: Run tests
run: bundle exec rspec
- name: Report coverage
uses: coverallsapp/github-action@v1
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.2
bundler-cache: true
- name: Run tests and report test coverage
run: COVERALLS_REPO_TOKEN=${{ secrets.COVERALLS_REPO_TOKEN }} bundle exec rspec
1 change: 1 addition & 0 deletions .rubocop.yml
Expand Up @@ -17,6 +17,7 @@ AllCops:
- 'pkg/**/*'
- 'reports/**/*'
- 'tmp/**/*'
- 'vendor/**/*'
TargetRubyVersion: 2.7.0

#################### Layout ###########################
Expand Down
41 changes: 0 additions & 41 deletions .travis.yml

This file was deleted.

0 comments on commit 61dc5b7

Please sign in to comment.