Skip to content

update action

update action #791

Workflow file for this run

name: Test
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [ '2.6', '2.7', '3.0', '3.1', '3.2', '3.3' ]
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: "${{ secrets.CF_HSTS_SSH_URL }}"
CF_HSTS_SSH_USER: "${{ secrets.CF_HSTS_SSH_USER }}"
CF_HSTS_SSH_PASS: "${{ secrets.CF_HSTS_SSH_PASS }}"
- name: Run ascli test
run: bundle exec ascli server br /
env:
ASCLI_URL: "${{ secrets.CF_HSTS_SSH_URL }}"
ASCLI_USERNAME: "${{ secrets.CF_HSTS_SSH_USER }}"
ASCLI_PASSWORD: "${{ secrets.CF_HSTS_SSH_PASS }}"