Skip to content

Commit

Permalink
Update github action workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Kagemaru committed Sep 18, 2023
1 parent 9cf219c commit ebb4393
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/code-style-review.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: 'Code Style Review'

on:
Expand All @@ -14,7 +15,7 @@ jobs:

steps:
- name: 'Checkout'
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: 'Set up Ruby'
uses: ruby/setup-ruby@v1 # Uses .ruby-version || .tool-versions by default
Expand Down Expand Up @@ -55,3 +56,4 @@ jobs:
-reporter=github-pr-review \
-level=error \
-diff="git diff $DIFF_BRANCH"
...
5 changes: 3 additions & 2 deletions .github/workflows/rails-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:

steps:
- name: 'Checkout'
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: 'Set up Ruby'
uses: ruby/setup-ruby@v1
Expand All @@ -45,7 +45,7 @@ jobs:
run: |
sudo apt-get install libpq-dev
- name: Cache gems
uses: actions/cache@preview
uses: actions/cache@v3
with:
path: vendor/bundle
key: ruby-${{ matrix.ruby }}-gem-${{ hashFiles('**/Gemfile.lock') }}
Expand All @@ -63,3 +63,4 @@ jobs:
bundle exec rails db:create
bundle exec rails db:migrate
bundle exec rails test
...
4 changes: 3 additions & 1 deletion .github/workflows/sbom.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: SBOM Generator

on:
Expand All @@ -15,7 +16,7 @@ jobs:

steps:
- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install cdxgen
run: |
Expand All @@ -36,3 +37,4 @@ jobs:
--form "projectName=${PROJECT_NAME:-$GITHUB_REPOSITORY}" \
--form "projectVersion=latest" \
--form "[email protected]"
...

0 comments on commit ebb4393

Please sign in to comment.