Validate tests #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
test-basic: | |
name: Test basic | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the Git repository | |
uses: actions/checkout@v4 | |
- uses: ./ | |
- shell: bash | |
run: | | |
[ -f dist/rmall/example_0.0.0-1_rmall.ipk ] | |
[ -f dist/rm1/example_0.0.0-1_rmall.ipk ] | |
[ -f dist/rm2/example_0.0.0-1_rmall.ipk ] | |
[ -f dist/rmall/test_0.0.0-1_rmall.ipk ] | |
[ -f dist/rm1/test_0.0.0-1_rmall.ipk ] | |
[ -f dist/rm2/test_0.0.0-1_rmall.ipk ] | |
test-path: | |
name: Test path | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the Git repository | |
uses: actions/checkout@v4 | |
- shell: bash | |
run: | | |
mkdir test | |
cp -l package test/package | |
- uses: ./ | |
with: | |
path: ${{ github.workspace }}/test | |
- shell: bash | |
run: | | |
cd test | |
[ -f dist/rmall/example_0.0.0-1_rmall.ipk ] | |
[ -f dist/rm1/example_0.0.0-1_rmall.ipk ] | |
[ -f dist/rm2/example_0.0.0-1_rmall.ipk ] | |
[ -f dist/rmall/test_0.0.0-1_rmall.ipk ] | |
[ -f dist/rm1/test_0.0.0-1_rmall.ipk ] | |
[ -f dist/rm2/test_0.0.0-1_rmall.ipk ] | |
test-vebose: | |
name: Test verbose | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the Git repository | |
uses: actions/checkout@v4 | |
- uses: ./ | |
with: | |
verbose: true | |
- shell: bash | |
run: | | |
[ -f dist/rmall/example_0.0.0-1_rmall.ipk ] | |
[ -f dist/rm1/example_0.0.0-1_rmall.ipk ] | |
[ -f dist/rm2/example_0.0.0-1_rmall.ipk ] | |
[ -f dist/rmall/test_0.0.0-1_rmall.ipk ] | |
[ -f dist/rm1/test_0.0.0-1_rmall.ipk ] | |
[ -f dist/rm2/test_0.0.0-1_rmall.ipk ] | |
test-arch: | |
name: Test arch | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the Git repository | |
uses: actions/checkout@v4 | |
- uses: ./ | |
with: | |
arch: rmall | |
- shell: bash | |
run: | | |
[ -f dist/rmall/example_0.0.0-1_rmall.ipk ] | |
! [ -f dist/rm1/example_0.0.0-1_rmall.ipk ] | |
! [ -f dist/rm2/example_0.0.0-1_rmall.ipk ] | |
[ -f dist/rmall/test_0.0.0-1_rmall.ipk ] | |
! [ -f dist/rm1/test_0.0.0-1_rmall.ipk ] | |
! [ -f dist/rm2/test_0.0.0-1_rmall.ipk ] | |
test-package: | |
name: Test package | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the Git repository | |
uses: actions/checkout@v4 | |
- uses: ./ | |
with: | |
package: example | |
- shell: bash | |
run: | | |
[ -f dist/rmall/example_0.0.0-1_rmall.ipk ] | |
[ -f dist/rm1/example_0.0.0-1_rmall.ipk ] | |
[ -f dist/rm2/example_0.0.0-1_rmall.ipk ] | |
! [ -f dist/rmall/test_0.0.0-1_rmall.ipk ] | |
! [ -f dist/rm1/test_0.0.0-1_rmall.ipk ] | |
! [ -f dist/rm2/test_0.0.0-1_rmall.ipk ] | |
test-warnings: | |
name: Test warnings | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the Git repository | |
uses: actions/checkout@v4 | |
- uses: ./ | |
with: | |
warnings: error | |
- shell: bash | |
run: | | |
[ -f dist/rmall/example_0.0.0-1_rmall.ipk ] | |
[ -f dist/rm1/example_0.0.0-1_rmall.ipk ] | |
[ -f dist/rm2/example_0.0.0-1_rmall.ipk ] | |
[ -f dist/rmall/test_0.0.0-1_rmall.ipk ] | |
[ -f dist/rm1/test_0.0.0-1_rmall.ipk ] | |
[ -f dist/rm2/test_0.0.0-1_rmall.ipk ] |