Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
k1LoW committed Jul 14, 2021
1 parent 7d6fecf commit 3ff4ddf
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 26 deletions.
26 changes: 3 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,8 @@ on:
pull_request:

jobs:
doc:
name: Document
runs-on: ubuntu-latest
env:
DISABLE_AWS_CLIENT_CHECK: true
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
bundler-cache: true

- name: Generate document
run: bundle exec bin/toolbox docgen > doc/resource_types.md

- uses: EndBug/add-and-commit@v7
with:
default_author: github_actions
add: 'doc/resource_types.md'
test:
name: Test
needs: [ doc ]
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -61,5 +38,8 @@ jobs:
run: gem install ox
if: matrix.ruby-version == '3.0'

- name: Generate document
run: bundle exec bin/toolbox docgen > doc/resource_types.md

- name: Run tests
run: bundle exec rake spec
29 changes: 29 additions & 0 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Doc

on:
schedule:
- cron: '0 0 * * 0'

jobs:
doc:
name: Document
runs-on: ubuntu-latest
env:
DISABLE_AWS_CLIENT_CHECK: true
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
bundler-cache: true

- name: Generate document
run: bundle exec bin/toolbox docgen > doc/resource_types.md

- uses: EndBug/add-and-commit@v7
with:
default_author: github_actions
add: 'doc/resource_types.md'
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ source 'https://rubygems.org'
# Specify your gem's dependencies in awspec.gemspec
gemspec

if Gem::Version.create(RUBY_VERSION) >= Gem::Version.create("3.0.0")
if Gem::Version.create(RUBY_VERSION) >= Gem::Version.create('3.0.0')
gem 'ox'
end
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ end
if defined?(RSpec)
task spec: 'spec:all'
namespace :spec do
task all: ['spec:type',
task all: ['spec:rubocop',
'spec:type',
'spec:account',
'spec:core',
'spec:generator_spec',
'spec:generator_doc',
'spec:rubocop',
'spec:helper']

task type: types
Expand Down

0 comments on commit 3ff4ddf

Please sign in to comment.