Add test-on-archlinux to Test Workflow

This commit is contained in:
Zhong Lufan 2023-01-30 23:26:38 +08:00
parent d91db2258f
commit 8366aadeea
No known key found for this signature in database
GPG Key ID: BE2B3A1E76AD7D04
1 changed files with 20 additions and 3 deletions

View File

@ -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