summaryrefslogtreecommitdiff
path: root/.github/workflows/ubuntu.yml
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2020-02-26 13:12:46 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2020-03-02 14:53:05 +0900
commit888e736524ad66369a7cbc065af4a1b5ed591c6a (patch)
tree439606b4929d8e19fae91e3e4302a9f8b643c1ee /.github/workflows/ubuntu.yml
parente06ad731f03ab83b72c15f951d7a5a3c8ac4323c (diff)
.github: make use of working-directory
One can specify working directory of a step, no by `cd foo` inside of the run. See also https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstepsrun
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/2927
Diffstat (limited to '.github/workflows/ubuntu.yml')
-rw-r--r--.github/workflows/ubuntu.yml30
1 files changed, 14 insertions, 16 deletions
diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml
index 0246689ccf..f448f20633 100644
--- a/.github/workflows/ubuntu.yml
+++ b/.github/workflows/ubuntu.yml
@@ -42,32 +42,30 @@ jobs:
- name: Set ENV
run: |
echo '::set-env name=JOBS::'-j$((1 + $(nproc --all)))
- - name: Autoconf
- run: cd src && exec autoconf
- - name: configure
- run: |
- mkdir build
- cd build
- ../src/configure -C --disable-install-doc
- - name: Make
- run: make -C build $JOBS
- - name: Extract gems
- run: make -C build update-gems extract-gems
+ - run: autoconf
+ working-directory: src
+ - run: mkdir build
+ - run: ../src/configure -C --disable-install-doc
+ working-directory: build
+ - run: make $JOBS
+ working-directory: build
+ - run: make update-gems extract-gems
+ working-directory: build
if: matrix.test_task == 'check'
- name: Create dummy files in build dir
run: |
- cd build
./miniruby -e '(("a".."z").to_a+("A".."Z").to_a+("0".."9").to_a+%w[foo bar test zzz]).each{|basename|File.write("#{basename}.rb", "raise %(do not load #{basename}.rb)")}'
+ working-directory: build
if: matrix.test_task == 'check'
- - name: Tests
- run: make -C build $JOBS -s ${{ matrix.test_task }}
+ - run: make $JOBS -s ${{ matrix.test_task }}
+ working-directory: build
env:
RUBY_TESTOPTS: "-q --tty=no"
# Remove minitest from TEST_BUNDLED_GEMS_ALLOW_FAILURES if https://github.com/seattlerb/minitest/pull/798 is resolved
# rss needs to add workaround for the non rexml environment
TEST_BUNDLED_GEMS_ALLOW_FAILURES: "minitest,xmlrpc,rss"
- - name: Leaked Globals
- run: make -C build -s leaked-globals
+ - run: make -s leaked-globals
+ working-directory: build
- uses: k0kubun/action-slack@v2.0.0
with:
payload: |