diff --git a/.github/workflows/bats-test.yml b/.github/workflows/bats-test.yml index e68da85..be2682f 100644 --- a/.github/workflows/bats-test.yml +++ b/.github/workflows/bats-test.yml @@ -2,12 +2,12 @@ name: Bats test on: push: paths: - - '.github/workflows/*.yml' + - '.github/workflows/bats-test.yml' - '*.sh' - 'test/*.sh' pull_request: paths: - - '.github/workflows/*.yml' + - '.github/workflows/bats-test.yml' - '*.sh' - 'test/*.sh' @@ -29,6 +29,23 @@ jobs: AliAccessKeySecret: ${{ secrets.ALIACCESSKEYSECRET }} run: ./test/bats/bin/bats test/test.bats.sh + test-on-archlinux: + runs-on: ubuntu-latest # Test on latest version bash curl openssl + container: + image: archlinux:latest + steps: + - name: Install dependencies + run: pacman -Syu bash curl openssl + - name: Check out code + uses: actions/checkout@v3 + with: + submodules: true + - name: Run test + env: + AliAccessKeyId: ${{ secrets.ALIACCESSKEYID }} + AliAccessKeySecret: ${{ secrets.ALIACCESSKEYSECRET }} + run: ./test/bats/bin/bats test/test.bats.sh + test-on-openwrt: runs-on: ubuntu-latest container: @@ -60,7 +77,7 @@ jobs: ./test/bats/bin/bats test/test.bats.sh test-on-ubuntu: - runs-on: ubuntu-18.04 # Test on old version bash + runs-on: ubuntu-18.04 # Test on old version bash curl openssl steps: - name: Check out code uses: actions/checkout@v3