Skip to content

Commit

Permalink
fix: fix platform error on workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ridhotamma committed Sep 15, 2023
1 parent ec034cd commit ac8ead5
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/rubyonrails.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# This workflow uses actions that are not certified by GitHub. They are
# provided by a third-party and are governed by separate terms of service,
# privacy policy, and support documentation.
#
# This workflow will install a prebuilt Ruby version, install dependencies, and
# run tests and linters.
name: "Ruby on Rails CI"
on:
push:
Expand All @@ -29,15 +23,16 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
# Add or replace dependency steps here
- name: Install Ruby and gems
uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
with:
bundler-cache: true
# Add or replace database setup steps here
- name: Add platform to bundle lock
run: bundle lock --add-platform x86_64-linux
- name: Bundle install
run: bundle install --jobs 4
- name: Set up database schema
run: bin/rails db:schema:load
# Add or replace test runners here
- name: Run tests
run: bin/rake

Expand All @@ -50,7 +45,6 @@ jobs:
uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
with:
bundler-cache: true
# Add or replace any other lints here
- name: Security audit dependencies
run: bin/bundler-audit --update
- name: Security audit application code
Expand Down

0 comments on commit ac8ead5

Please sign in to comment.