Skip to content

Commit 80173f4

Browse files
committed
fix(ci): test workflow
1 parent 0c1b3c4 commit 80173f4

File tree

3 files changed

+22
-13
lines changed

3 files changed

+22
-13
lines changed

.github/actions/test/action.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Test
2+
description: Run tests
3+
4+
runs:
5+
using: composite
6+
steps:
7+
# This is required for @prettier/plugin-ruby to work correctly
8+
- name: Setup Ruby
9+
uses: ruby/setup-ruby@v1
10+
with:
11+
ruby-version: "3.4" # Not needed with a .ruby-version, .tool-versions or mise.toml
12+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
13+
14+
- name: Install Ruby gems for plugin-ruby
15+
shell: bash
16+
run: gem install syntax_tree --no-document
17+
18+
- name: Test
19+
shell: bash
20+
run: pnpm -s test:ci

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
uses: ./.github/actions/setup
3232

3333
- name: Test
34-
run: pnpm -s test:ci
34+
uses: ./.github/actions/test
3535

3636
- name: Get Next Package Version
3737
id: package-version

.github/workflows/test.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,5 @@ jobs:
1616
- name: Setup
1717
uses: ./.github/actions/setup
1818

19-
# This is required for @prettier/plugin-ruby to work correctly
20-
- name: Setup Ruby
21-
uses: ruby/setup-ruby@v1
22-
with:
23-
ruby-version: "3.4" # Not needed with a .ruby-version, .tool-versions or mise.toml
24-
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
25-
26-
- name: Install Ruby gems for plugin-ruby
27-
run: |
28-
gem install syntax_tree --no-document
29-
3019
- name: Test
31-
run: pnpm -s test:ci
20+
uses: ./.github/actions/test

0 commit comments

Comments
 (0)