From 8366aadeea36092876a25dc6363f3eff119239c5 Mon Sep 17 00:00:00 2001 From: Zhong Lufan Date: Mon, 30 Jan 2023 23:26:38 +0800 Subject: [PATCH] Add test-on-archlinux to Test Workflow --- .github/workflows/bats-test.yml | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) 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