summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklós Fazekas <mfazekas@szemafor.com>2021-01-09 13:50:34 +0100
committerMiklós Fazekas <mfazekas@szemafor.com>2021-01-09 13:50:34 +0100
commit4817a2a23ec0131b817450a9c137ad794c559c05 (patch)
tree102eba3eac17a22fd1763cc3a6e25272436acc61
parent5a5a94f657e893e3cb400716442ddc53e0e96fa8 (diff)
downloadnet-ssh-4817a2a23ec0131b817450a9c137ad794c559c05.tar.gz
Github actions
-rw-r--r--.github/workflows/ci.yml42
1 files changed, 42 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..b01d2c5
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,42 @@
+name: CI
+on: [pull_request]
+jobs:
+ test:
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ ruby-version: [2.7.x, 2.6.x, 2.5.x]
+ steps:
+ - uses: actions/checkout@v1
+
+ - name: Set up Ruby ${{ matrix.ruby-version }}
+ uses: actions/setup-ruby@v1
+ with:
+ ruby-version: ${{ matrix.ruby-version }}
+
+ - name: Cache bundler
+ uses: actions/cache@v1
+ id: bundler-cache
+ with:
+ path: vendor/bundle
+ key: ${{ runner.os }}-gem-v2-${{ hashFiles('**/.ruby-version') }}-${{ hashFiles('**/Gemfile.lock') }}
+ restore-keys: |
+ ${{ runner.os }}-gem-v2-
+
+ - name: Bundle install
+ run: |
+ gem install bundler
+ bundle config set path 'vendor/bundle'
+ bundle config set --local path 'vendor/bundle'
+ bundle install --jobs 4 --retry 3 --path vendor/bundle
+ BUNDLE_GEMFILE=./Gemfile.noed25519 bundle install --jobs 4 --retry 3 --path vendor/bundle
+ env:
+ BUNDLE_PATH: vendor/bundle
+
+ - name: Run Tests
+ run: bundle _1.17_ exec rake test
+ - name: Run Tests
+ run: bundle _1.17_ exec rake test
+ end:
+ BUNDLE_GEMFILE=./Gemfile.noed25519
+ \ No newline at end of file