Skip to content

Commit

Permalink
fix: update ci action version
Browse files Browse the repository at this point in the history
Github is deprecating Node16 actions
This updates workflows to use Node20.

Add screenshots path for system-events
workflow
  • Loading branch information
elasticspoon authored and dorner committed Mar 17, 2024
1 parent 05aaec9 commit 2bcad5b
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/brakeman.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/factory-bot-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/plantuml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
name: plantuml
steps:
- name: checkout
uses: actions/checkout@v1
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: plantuml
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/rspec-events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ on:
branches:
- main
paths-ignore:
- 'doc/**'
- '*.md'
- 'bin/*'
- "doc/**"
- "*.md"
- "bin/*"

jobs:
rspec-events:

runs-on: ubuntu-latest

services:
Expand All @@ -41,7 +40,7 @@ jobs:
# When you run 2 parallel jobs then first job will have index 0, the second job will have index 1 etc
ci_node_index: [0, 1]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
Expand Down Expand Up @@ -85,7 +84,7 @@ jobs:
RUBYOPT='-W:no-deprecated -W:no-experimental' bin/knapsack_pro_rspec
- name: Upload artifacts
if: ${{ failure() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: failed-browser-tests
path: tmp/screenshots
15 changes: 8 additions & 7 deletions .github/workflows/rspec-system-events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ on:
branches:
- main
paths-ignore:
- 'doc/**'
- '*.md'
- 'bin/*'
- "doc/**"
- "*.md"
- "bin/*"

jobs:
rspec-system-events:

runs-on: ubuntu-latest

services:
Expand All @@ -41,7 +40,7 @@ jobs:
# When you run 2 parallel jobs then first job will have index 0, the second job will have index 1 etc
ci_node_index: [0, 1, 2, 3, 4, 5]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
Expand Down Expand Up @@ -86,7 +85,9 @@ jobs:
RUBYOPT='-W:no-deprecated -W:no-experimental' bin/knapsack_pro_rspec
- name: Upload artifacts
if: ${{ failure() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: failed-browser-tests
path: tmp/capybara
path: |
tmp/capybara
tmp/screenshots
11 changes: 5 additions & 6 deletions .github/workflows/rspec-system.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ on:
branches:
- main
paths-ignore:
- 'doc/**'
- '*.md'
- 'bin/*'
- "doc/**"
- "*.md"
- "bin/*"

jobs:
rspec-system:

runs-on: ubuntu-latest

services:
Expand All @@ -41,7 +40,7 @@ jobs:
# When you run 2 parallel jobs then first job will have index 0, the second job will have index 1 etc
ci_node_index: [0, 1, 2, 3, 4, 5]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
Expand Down Expand Up @@ -85,7 +84,7 @@ jobs:
RUBYOPT='-W:no-deprecated -W:no-experimental' bin/knapsack_pro_rspec
- name: Upload artifacts
if: ${{ failure() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: failed-browser-tests
path: |
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/rspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ on:
branches:
- main
paths-ignore:
- 'doc/**'
- '*.md'
- 'bin/*'
- "doc/**"
- "*.md"
- "bin/*"

jobs:
rspec:

runs-on: ubuntu-latest

services:
Expand All @@ -41,7 +40,7 @@ jobs:
# When you run 2 parallel jobs then first job will have index 0, the second job will have index 1 etc
ci_node_index: [0, 1]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
Expand Down Expand Up @@ -84,7 +83,7 @@ jobs:
RUBYOPT='-W:no-deprecated -W:no-experimental' bin/knapsack_pro_rspec
- name: Upload artifacts
if: ${{ failure() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: failed-browser-tests
path: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ruby_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
Expand Down

0 comments on commit 2bcad5b

Please sign in to comment.