From ac8ead5d4e61a6e0c7023b2645a9eb7348f578e5 Mon Sep 17 00:00:00 2001 From: Ridho Tamma Date: Fri, 15 Sep 2023 16:07:31 +0700 Subject: [PATCH] fix: fix platform error on workflow --- .github/workflows/rubyonrails.yml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/rubyonrails.yml b/.github/workflows/rubyonrails.yml index ab2bfc3..be0721a 100644 --- a/.github/workflows/rubyonrails.yml +++ b/.github/workflows/rubyonrails.yml @@ -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: @@ -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 @@ -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