config token actions #1101
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}" |