Skip to content

Commit e680c8e

Browse files
committed
Clean up GHA
1 parent e6927c2 commit e680c8e

File tree

3 files changed

+28
-17
lines changed

3 files changed

+28
-17
lines changed

.github/workflows/assets.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,20 @@ jobs:
1616
uses: actions/checkout@v2
1717
with:
1818
repository: interscript/interscript
19-
- name: Run a bootstrap script
19+
20+
- name: Run bootstrap script
2021
run: ruby bootstrap.rb
22+
2123
- name: Use Ruby
2224
uses: ruby/setup-ruby@v1
2325
with:
2426
ruby-version: 3.0
2527
bundler-cache: true
26-
working-directory: ./ruby
28+
2729
- name: Generate visualization json
28-
run: pushd ruby; bundle exec rake generate_visualization_json; popd
30+
working-directory: ./ruby
31+
run: bundle exec rake generate_visualization_json
32+
2933
- name: Archive json files from the previous step
3034
uses: thedoctor0/zip-release@master
3135
with:
@@ -34,6 +38,7 @@ jobs:
3438
directory: ./ruby/
3539
exclusions: '*.git*'
3640
type: zip
41+
3742
- name: Upload artifacts
3843
id: upload_vis_json
3944
uses: svenstaro/upload-release-action@2.2.1
@@ -43,8 +48,11 @@ jobs:
4348
file_glob: true
4449
tag: ${{ github.ref }}
4550
overwrite: true
51+
4652
- name: Generate metadata
47-
run: pushd ruby; bundle exec rake generate_metadata_json; popd
53+
working-directory: ./ruby
54+
run: bundle exec rake generate_metadata_json
55+
4856
- name: Archive metadata from the previous step
4957
uses: thedoctor0/zip-release@master
5058
with:
@@ -53,6 +61,7 @@ jobs:
5361
directory: ./ruby/
5462
exclusions: '*.git*'
5563
type: zip
64+
5665
- name: Upload metadata
5766
id: upload_metadata
5867
uses: svenstaro/upload-release-action@2.2.1
@@ -62,11 +71,13 @@ jobs:
6271
asset_name: metadata.json.zip
6372
tag: ${{ github.ref }}
6473
overwrite: true
74+
6575
- name: Output link
6676
run: |
6777
echo ${{ steps.upload_vis_json.outputs.browser_download_url }}
6878
echo ${{ steps.upload_metadata.outputs.browser_download_url }}
69-
# - name: Trigger interscript.org
79+
80+
# - name: Trigger deploy at interscript.org
7081
# uses: peter-evans/repository-dispatch@v1
7182
# with:
7283
# token: ${{ secrets.INTERSCRIPT_CI_TOKEN }}

.github/workflows/rake.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,17 @@ jobs:
3838
with:
3939
repository: interscript/interscript
4040

41-
- name: Run a bootstrap script
41+
- name: Run bootstrap script
4242
run: ruby bootstrap.rb
4343

4444
- name: Use Ruby
4545
uses: ruby/setup-ruby@v1
4646
with:
4747
ruby-version: ${{ matrix.ruby }}
4848
bundler-cache: true
49-
working-directory: ./ruby
5049

5150
- name: Run RSpecs
51+
working-directory: ./ruby
5252
run: |
53-
pushd ruby
5453
bundle install --with=jsexec
5554
bundle exec rspec -f f
56-
popd

.github/workflows/release.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,28 +14,30 @@ jobs:
1414
with:
1515
repository: interscript/interscript
1616

17-
- name: Run a bootstrap script
17+
- name: Run bootstrap script
1818
run: ruby bootstrap.rb
1919

2020
- uses: ruby/setup-ruby@v1
2121
with:
2222
ruby-version: '2.7'
23-
architecture: 'x64'
24-
working-directory: ./ruby
2523

2624
- uses: actions/setup-node@v1
2725
with:
2826
node-version: 14.x
2927

3028
# For now let's install without secryst, as we don't necessarily need it.
3129
# We may need to change it once we start to depend on secryst maps.
32-
- run: pushd ruby && bundle install --jobs 4 --retry 3 --with jsexec --without secryst && popd
30+
- name: Install bundle
31+
working-directory: ./ruby
32+
run: bundle install --jobs 4 --retry 3 --with jsexec --without secryst
3333

34-
- name: Test the Ruby package
35-
run: pushd ruby && bundle exec rake && popd
34+
- name: Test Ruby package
35+
working-directory: ./ruby
36+
run: bundle exec rake
3637

37-
- name: Test the JS package
38-
run: pushd js && npm install && npm run prepareMaps && npm test && popd
38+
- name: Test JS package
39+
working-directory: ./js
40+
run: npm install && npm run prepareMaps && npm test
3941

4042
- name: Publish to rubygems.org
4143
env:

0 commit comments

Comments
 (0)