-
Notifications
You must be signed in to change notification settings - Fork 17
50 lines (42 loc) · 1.59 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Test
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ["2.7", "3.0", "3.1", "3.2", "3.3", "3.4", "jruby"]
steps:
- uses: actions/checkout@v4
#- uses: webfactory/[email protected]
# with:
# ssh-private-key: "${{ secrets.TESTS_SSH_PRIVATE_KEY }}"
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Set up Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run tests
run: bundle exec rake spec
env:
CF_HSTS_SSH_URL: "ssh://eudemo.asperademo.com:33001"
CF_HSTS_SSH_USER: "${{ secrets.CF_HSTS_SSH_USER }}"
CF_HSTS_SSH_PASS: "${{ secrets.CF_HSTS_SSH_PASS }}"
- name: Run ascli test browse
run: bundle exec ascli server br /
env:
ASCLI_URL: "ssh://eudemo.asperademo.com:33001"
ASCLI_USERNAME: "${{ secrets.CF_HSTS_SSH_USER }}"
ASCLI_PASSWORD: "${{ secrets.CF_HSTS_SSH_PASS }}"
- name: Run ascli install ascp
run: bundle exec ascli conf ascp install
- name: Run ascli test transfer
run: bundle exec ascli server upload --to-folder=/Upload 'faux:///test.${{ matrix.ruby }}?1k'
env:
ASCLI_URL: "ssh://eudemo.asperademo.com:33001"
ASCLI_USERNAME: "${{ secrets.CF_HSTS_SSH_USER }}"
ASCLI_PASSWORD: "${{ secrets.CF_HSTS_SSH_PASS }}"