ssh-action/.github/workflows/testing.yml

31 lines
638 B
YAML
Raw Normal View History

2023-03-03 02:01:58 +00:00
name: Testing
on:
push:
pull_request:
testing:
runs-on: ubuntu-latest
container: golang:1.20-alpine
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: setup sshd server
run: |
apk add git make curl perl bash build-base zlib-dev ucl-dev
make ssh-server
- name: executing remote ssh commands using password
uses: ./
with:
host: 127.0.0.1
username: drone-ssh
password: 1234
port: 22
script: whoami
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3