Add test-on-archlinux to Test Workflow
This commit is contained in:
parent
d91db2258f
commit
8366aadeea
|
@ -2,12 +2,12 @@ name: Bats test
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- '.github/workflows/*.yml'
|
- '.github/workflows/bats-test.yml'
|
||||||
- '*.sh'
|
- '*.sh'
|
||||||
- 'test/*.sh'
|
- 'test/*.sh'
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- '.github/workflows/*.yml'
|
- '.github/workflows/bats-test.yml'
|
||||||
- '*.sh'
|
- '*.sh'
|
||||||
- 'test/*.sh'
|
- 'test/*.sh'
|
||||||
|
|
||||||
|
@ -29,6 +29,23 @@ jobs:
|
||||||
AliAccessKeySecret: ${{ secrets.ALIACCESSKEYSECRET }}
|
AliAccessKeySecret: ${{ secrets.ALIACCESSKEYSECRET }}
|
||||||
run: ./test/bats/bin/bats test/test.bats.sh
|
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:
|
test-on-openwrt:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
|
@ -60,7 +77,7 @@ jobs:
|
||||||
./test/bats/bin/bats test/test.bats.sh
|
./test/bats/bin/bats test/test.bats.sh
|
||||||
|
|
||||||
test-on-ubuntu:
|
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:
|
steps:
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
Loading…
Reference in New Issue