Add bats test

This commit is contained in:
Zhong Lufan
2022-06-20 00:13:22 +08:00
parent 8ace8497d7
commit 61545756fd
4 changed files with 113 additions and 0 deletions

23
.github/workflows/bats-test.yml vendored Normal file
View File

@@ -0,0 +1,23 @@
name: Bats test
on:
push:
pull_request:
paths:
- 'AliyunOpenApiSDK.sh'
- 'test.bats.sh'
jobs:
test:
runs-on: ubuntu-latest
env:
AliAccessKeyId: ${{ secrets.ALIACCESSKEYID }}
AliAccessKeySecret: ${{ secrets.ALIACCESSKEYSECRET }}
steps:
- name: Setup BATS
uses: mig4/setup-bats@v1
with:
bats-version: 1.7.0
- name: Check out code
uses: actions/checkout@v3
- name: Run test
run: bats test.bats.sh