chore(CI): Add testing

This commit is contained in:
Bo-Yi Wu
2023-03-03 10:01:58 +08:00
parent 4a03da89e5
commit 2673bdf5f5
2 changed files with 45 additions and 0 deletions

30
.github/workflows/testing.yml vendored Normal file
View 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