From c88960ec4c945495cff927b35ebeabb3bfc78b3f Mon Sep 17 00:00:00 2001 From: Manabu Niseki Date: Sat, 13 Jan 2024 14:10:55 +0900 Subject: [PATCH 1/2] ci: disable npm audit --- .github/workflows/gem.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/gem.yml b/.github/workflows/gem.yml index 22957862..1462550c 100644 --- a/.github/workflows/gem.yml +++ b/.github/workflows/gem.yml @@ -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" From e44e008b4231860877730f7cee2d2e05a37524f7 Mon Sep 17 00:00:00 2001 From: Manabu Niseki Date: Sat, 13 Jan 2024 14:11:17 +0900 Subject: [PATCH 2/2] chore: output elapsed build time --- Rakefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index d42bd553..f48e4546 100644 --- a/Rakefile +++ b/Rakefile @@ -1,5 +1,7 @@ # frozen_string_literal: true +require "time" + require "rspec/core/rake_task" require "standard/rake" @@ -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/