mirror of
https://github.com/samsonjs/instapaper.git
synced 2026-04-27 14:57:44 +00:00
Update CI workflows (#2)
* Update GitHub workflows * More updates * Drop EOL Ruby 3.1 from test matrix * Ignore code duplication in specs * Fix lint errors * More lint fixes * Ok how about now * Wire up JSCPD config * Disable JSCPD entirely
This commit is contained in:
parent
9f9d59ccee
commit
51f01888e0
2 changed files with 16 additions and 8 deletions
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
|
|
@ -2,7 +2,10 @@ name: CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ '**' ]
|
branches: ["**"]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# Set the job key. The key is displayed as the job name
|
# Set the job key. The key is displayed as the job name
|
||||||
|
|
@ -10,7 +13,7 @@ jobs:
|
||||||
tests:
|
tests:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
ruby: [ '2.6', '2.7', '3.0' ]
|
ruby: ["3.4", "3.3", "3.2"]
|
||||||
|
|
||||||
name: Tests - Ruby ${{ matrix.ruby }}
|
name: Tests - Ruby ${{ matrix.ruby }}
|
||||||
# Set the type of machine to run on
|
# Set the type of machine to run on
|
||||||
|
|
@ -19,9 +22,9 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
# Checks out a copy of your repository on the ubuntu-latest machine
|
# Checks out a copy of your repository on the ubuntu-latest machine
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: actions/cache@v2
|
- uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: vendor/bundle
|
path: vendor/bundle
|
||||||
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
|
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
|
||||||
|
|
@ -42,4 +45,3 @@ jobs:
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
bundle exec rake test
|
bundle exec rake test
|
||||||
|
|
||||||
|
|
|
||||||
12
.github/workflows/linter.yml
vendored
12
.github/workflows/linter.yml
vendored
|
|
@ -16,7 +16,12 @@ name: Lint Code Base
|
||||||
#############################
|
#############################
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ '**' ]
|
branches: ["**"]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
statuses: write
|
||||||
|
checks: write
|
||||||
|
|
||||||
###############
|
###############
|
||||||
# Set the Job #
|
# Set the Job #
|
||||||
|
|
@ -36,7 +41,7 @@ jobs:
|
||||||
# Checkout the code base #
|
# Checkout the code base #
|
||||||
##########################
|
##########################
|
||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
# Full git history is needed to get a proper list of changed files within `super-linter`
|
# Full git history is needed to get a proper list of changed files within `super-linter`
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
@ -45,8 +50,9 @@ jobs:
|
||||||
# Run Linter against code base #
|
# Run Linter against code base #
|
||||||
################################
|
################################
|
||||||
- name: Lint Code Base
|
- name: Lint Code Base
|
||||||
uses: github/super-linter@v3
|
uses: github/super-linter@v7
|
||||||
env:
|
env:
|
||||||
VALIDATE_ALL_CODEBASE: false
|
VALIDATE_ALL_CODEBASE: false
|
||||||
DEFAULT_BRANCH: main
|
DEFAULT_BRANCH: main
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
VALIDATE_JSCPD: false
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue