Skip to content

Commit

Permalink
ci: merge ruby and node based jobs into single workflows (#434)
Browse files Browse the repository at this point in the history
* ci: merge node related checks into a single workflow

* ci: merge ruby related checks into a single workflow

* ci: rename jobs
  • Loading branch information
G-Rath authored Mar 8, 2024
1 parent 260b256 commit cff30ae
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 77 deletions.
39 changes: 0 additions & 39 deletions .github/workflows/jest.yml

This file was deleted.

28 changes: 26 additions & 2 deletions .github/workflows/js-lint.yml → .github/workflows/node.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: JS lint
name: Node based checks

on:
push:
Expand All @@ -14,7 +14,7 @@ concurrency:

jobs:
lint:
name: JS Lint
name: Linting
strategy:
matrix:
os: [ubuntu-latest]
Expand All @@ -37,3 +37,27 @@ jobs:

- name: Lint
run: yarn lint
test:
name: Testing
strategy:
matrix:
os: [ubuntu-latest]
node: [14.x, 16.x, 18.x]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: yarn

- name: Install dependencies
run: yarn --frozen-lockfile --non-interactive --prefer-offline

- name: Jest Specs
run: yarn test
34 changes: 0 additions & 34 deletions .github/workflows/rubocop.yml

This file was deleted.

24 changes: 22 additions & 2 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Ruby specs
name: Ruby based checks

on:
push:
Expand All @@ -13,8 +13,28 @@ concurrency:
cancel-in-progress: true

jobs:
lint:
name: Linting
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
ruby: ['2.7', '3.0']

steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true

- name: Ruby rubocop
run: bundle exec rubocop

test:
name: Ruby specs
name: Testing
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down

0 comments on commit cff30ae

Please sign in to comment.