summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2020-02-09 17:22:28 +1300
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2020-02-09 17:30:33 +1300
commit6c4f1c22fc8f1483b27bd628d9270479cf34beaa (patch)
tree4310110f033dc95660207e39364511fe074e3b89
parentc05b821f0cab7cda7b07b62eb39e21275c56abee (diff)
downloadrack-6c4f1c22fc8f1483b27bd628d9270479cf34beaa.tar.gz
Add external tests.
-rw-r--r--.github/workflows/development.yml37
1 files changed, 34 insertions, 3 deletions
diff --git a/.github/workflows/development.yml b/.github/workflows/development.yml
index 1f3776c0..41521a33 100644
--- a/.github/workflows/development.yml
+++ b/.github/workflows/development.yml
@@ -3,7 +3,6 @@ name: Development
on: [push]
jobs:
-
test:
strategy:
fail-fast: false
@@ -13,9 +12,11 @@ jobs:
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v2
+
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{matrix.ruby}}
+
- uses: actions/cache@v1
with:
path: vendor/bundle
@@ -23,11 +24,11 @@ jobs:
restore-keys: |
bundle-use-ruby-${{matrix.os}}-${{matrix.ruby}}-
- - name: Installing packages
+ - name: Installing packages (ubuntu)
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get install libfcgi-dev libmemcached-dev
- - name: Installing packages
+ - name: Installing packages (macos)
if: matrix.os == 'macos-latest'
run: brew install fcgi libmemcached
@@ -35,4 +36,34 @@ jobs:
run: |
bundle config path vendor/bundle
bundle install
+
- run: bundle exec rake
+
+ external:
+ needs: test
+ strategy:
+ fail-fast: false
+ matrix:
+ os: [ubuntu-latest, macos-latest]
+ ruby: [2.6, 2.7]
+ runs-on: ${{matrix.os}}
+ steps:
+ - uses: actions/checkout@v2
+
+ - uses: ruby/setup-ruby@v1
+ with:
+ ruby-version: ${{matrix.ruby}}
+
+ - uses: actions/cache@v1
+ with:
+ path: vendor/bundle
+ key: bundle-use-ruby-${{matrix.os}}-${{matrix.ruby}}-${{hashFiles('**/Gemfile')}}
+ restore-keys: |
+ bundle-use-ruby-${{matrix.os}}-${{matrix.ruby}}-
+
+ - name: Bundle install...
+ run: |
+ bundle config path vendor/bundle
+ bundle install
+
+ - run: bundle exec rake external