simp-test 0.2.6 → 0.3.23

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b17cff246352b13cc7e41bf947f5a04ef63caea3ea562f3da5d2e32de667f1e6
4
- data.tar.gz: a7301dc302845e2618374aa05105d62c88f1153d4c2028d137aec19662e48d00
3
+ metadata.gz: a5a95dc54cee74f2d109cb54c478f9c7d2ab1593d09bee6bddf3f6d449acf2c1
4
+ data.tar.gz: a0657198c56f4473a3c8df8b1821f8e1a74dab54db56d669ebb30d60d73fb1a1
5
5
  SHA512:
6
- metadata.gz: d279bbe7762c33ecfff5d889345b6c50a848b5130882f500104fafa36af429dbebdf11724bff93fe54ac7239cbdaf0efe158a6e05f58b2ad40bd3955e350eb5d
7
- data.tar.gz: 42bea312ba691dddf6012df9ed2e58f1593fe7bd7d7646993f82e5d43bda4c942fd3996f2e3696e5ede28ec2dbb472bc162c67a5200b06610e003e8a79e164ce
6
+ metadata.gz: 6dd957baf7d612a8da913a44ffbc5c350e2fd3fddc1f3f8bda3111614bf0cb48794eec5e6802cf5c8214ec2c41fe3f736193a40dd82acc92168b1a22f88fc312
7
+ data.tar.gz: 42cae2e4c1202071737e5025aacbaa465244cb5ae6f1bfc8063d2d4760bd6f9362c14919b476cba0b6ba23eca081271b31eaa511bfde0c79a86b3212077dab44
@@ -26,11 +26,11 @@
26
26
  #
27
27
  # * By default, the gem is built and released using the standard rake tasks
28
28
  # from "bundler/gem_tasks". To override these, create a JSON file at
29
- # `.github/workflows.local.json`, using the format:
29
+ # `.github/workflows.local.json`, using the following format:
30
30
  #
31
31
  # {
32
32
  # "gem_build_command": "bundle exec rake build",
33
- # "gem_release_command": "bundle exec rake release",
33
+ # "gem_release_command": "bundle exec rake build release:rubygem_push",
34
34
  # "gem_pkg_dir": "pkg"
35
35
  # }
36
36
  #
@@ -70,19 +70,19 @@ jobs:
70
70
  # By default, these are the standard tasks from "bundler/gem_tasks"
71
71
  # To override them in the LOCAL_WORKFLOW_CONFIG_FILE
72
72
  GEM_BUILD_COMMAND='bundle exec rake build'
73
+ GEM_RELEASE_COMMAND='bundle exec rake build release:rubygem_push'
73
74
  GEM_PKG_DIR='pkg'
74
- GEM_RELEASE_COMMAND='gem push ${GEM_PKG_DIR}/*.gem'
75
75
  if jq -r '. | keys' "$LOCAL_WORKFLOW_CONFIG_FILE" 2>/dev/null | \
76
- grep -w '"gem_build_command"' &> /dev/null; then
77
- GEM_BUILD_COMMAND="$(jq .gem_build_command "$LOCAL_WORKFLOW_CONFIG_FILE" )"
76
+ grep -w '"gem_pkg_dir"' &> /dev/null; then
77
+ GEM_PKG_DIR="$(jq -r .gem_pkg_dir "$LOCAL_WORKFLOW_CONFIG_FILE" )"
78
78
  fi
79
79
  if jq -r '. | keys' "$LOCAL_WORKFLOW_CONFIG_FILE" 2>/dev/null | \
80
- grep -w '"gem_release_command"' &> /dev/null; then
81
- GEM_RELEASE_COMMAND="$(jq .gem_release_command "$LOCAL_WORKFLOW_CONFIG_FILE" )"
80
+ grep -w '"gem_build_command"' &> /dev/null; then
81
+ GEM_BUILD_COMMAND="$(jq -r .gem_build_command "$LOCAL_WORKFLOW_CONFIG_FILE" )"
82
82
  fi
83
83
  if jq -r '. | keys' "$LOCAL_WORKFLOW_CONFIG_FILE" 2>/dev/null | \
84
- grep -w '"gem_pkg_dir"' &> /dev/null; then
85
- GEM_PKG_DIR="$(jq .gem_release_command "$LOCAL_WORKFLOW_CONFIG_FILE" )"
84
+ grep -w '"gem_release_command"' &> /dev/null; then
85
+ GEM_RELEASE_COMMAND="$(jq -r .gem_release_command "$LOCAL_WORKFLOW_CONFIG_FILE" )"
86
86
  fi
87
87
  echo "::set-output name=build_command::${GEM_BUILD_COMMAND}"
88
88
  echo "::set-output name=pkg_dir::${GEM_PKG_DIR}"
@@ -92,11 +92,18 @@ jobs:
92
92
  ruby-version: 2.5
93
93
  bundler-cache: true
94
94
  - name: Test build the package
95
- run: "${{ steps.commands.outputs.build_command }}"
95
+ env:
96
+ GEM_BUILD_COMMAND: ${{ steps.commands.outputs.build_command }}
97
+ run: "$GEM_BUILD_COMMAND"
96
98
  - name: "Assert '${{ github.ref }}' matches the package version"
97
99
  run: |
98
100
  tag="${GITHUB_REF/refs\/tags\//}"
99
- [ -f ${{ steps.commands.outputs.pkg_dir }}/*-${tag}.gem ] || { echo "::error ::tag '${tag}' does not match package $(ls -1 ${{ steps.commands.outputs.pkg_dir }}/*.gem)"; exit 1 ; }
101
+ [ -d "${{ steps.commands.outputs.pkg_dir }}" ] || \
102
+ { echo "::error ::No directory found at ${{ steps.commands.outputs.pkg_dir }}/" ; exit 3 ; }
103
+ ls -1 "${{ steps.commands.outputs.pkg_dir }}"/*.gem || \
104
+ { echo "::error ::No gem file found at ${{ steps.commands.outputs.pkg_dir }}/*.gem" ; exit 2 ; }
105
+ [ -f "${{ steps.commands.outputs.pkg_dir }}"/*-${tag}.gem ] || \
106
+ { echo "::error ::tag '${tag}' does not match package $(ls -1 ${{ steps.commands.outputs.pkg_dir }}/*.gem)"; exit 1 ; }
100
107
 
101
108
  create-github-release:
102
109
  name: Deploy GitHub Release
@@ -151,6 +158,7 @@ jobs:
151
158
  RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
152
159
  BUILD_COMMAND: ${{ needs.releng-checks.outputs.build_command }}
153
160
  RELEASE_COMMAND: ${{ needs.releng-checks.outputs.release_command }}
161
+ PKG_DIR: ${{ needs.releng-checks.outputs.pkg_dir }}
154
162
  steps:
155
163
  - name: Checkout code
156
164
  uses: actions/checkout@v2
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Simp
4
4
  module Test
5
- VERSION = '0.2.6'
5
+ VERSION = '0.3.23'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simp-test
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.3.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - SIMP Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-02-16 00:00:00.000000000 Z
11
+ date: 2021-02-17 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email:
@@ -56,7 +56,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
56
56
  version: '0'
57
57
  requirements: []
58
58
  rubyforge_project:
59
- rubygems_version: 2.7.10
59
+ rubygems_version: 2.7.6.2
60
60
  signing_key:
61
61
  specification_version: 4
62
62
  summary: test gem for CI