chore(CI): Add testing
This commit is contained in:
30
.github/workflows/testing.yml
vendored
Normal file
30
.github/workflows/testing.yml
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
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
|
||||
Reference in New Issue
Block a user