Skip to content

Commit

Permalink
Merge pull request #1012 from ninoseki/renew-ci
Browse files Browse the repository at this point in the history
Renew ci
  • Loading branch information
ninoseki authored Jan 13, 2024
2 parents 61a293f + e44e008 commit 1598ca8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/gem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: npm
cache-dependency-path: frontend/package-lock.json
- name: Configure NPM
# Disable audit to improve the build performance
run: npm set audit false
- name: Configure Git
# Configure Git to push a tag
run: |
git config --global user.name "${GITHUB_ACTOR}"
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
Expand Down
9 changes: 8 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# frozen_string_literal: true

require "time"

require "rspec/core/rake_task"
require "standard/rake"

Expand Down Expand Up @@ -46,13 +48,18 @@ namespace :build do
desc "Build Swagger doc"
task :swagger, [:path] do |_t, args|
args.with_defaults(path: "./frontend/swagger.yaml")

started_at = Time.now
build_swagger_doc args.path
elapsed = (Time.now - started_at).floor(2)

puts "Swagger doc is built in #{elapsed}s"
end
end

task :build do
# Build Swagger dos
Rake::Task["build:swagger"].invoke

# Build ReDocs docs & frontend assets
sh "cd frontend && npm install && npm run docs && npm run build-only"
# Copy built assets into ./lib/web/public/
Expand Down

0 comments on commit 1598ca8

Please sign in to comment.