test-action-debian-package/.github/workflows/test.yml

115 lines
3.1 KiB
YAML
Raw Normal View History

2020-03-25 22:13:26 +00:00
name: Test Action
on: push
jobs:
test:
runs-on: ubuntu-latest
2020-03-26 15:35:44 +00:00
strategy:
matrix:
package:
- deber
- lazygit
include:
- package: deber
repo: dawidd6/deber
ref: refs/tags/v1.0.0
2020-03-26 15:35:44 +00:00
- package: lazygit
repo: dawidd6/lazygit-debian
ref: refs/tags/ubuntu/0.16.2-1
2020-03-26 15:35:44 +00:00
steps:
- name: Checkout package
uses: actions/checkout@v2
with:
2020-03-26 15:46:27 +00:00
repository: ${{matrix.repo}}
2020-03-26 15:35:44 +00:00
ref: ${{matrix.ref}}
- name: Test run
uses: ${{github.repository}}@${{github.sha}}
2020-03-26 15:35:44 +00:00
- name: Check files
run: |
ls -lh ${{matrix.package}}_*.*
test-artifacts:
runs-on: ubuntu-latest
strategy:
matrix:
package:
- deber
- lazygit
include:
- package: deber
repo: dawidd6/deber
2020-03-26 15:46:27 +00:00
ref: refs/tags/v1.0.0
2020-03-26 15:35:44 +00:00
- package: lazygit
repo: dawidd6/lazygit-debian
2020-03-26 15:46:27 +00:00
ref: refs/tags/ubuntu/0.16.2-1
2020-03-26 15:35:44 +00:00
steps:
- name: Checkout package
uses: actions/checkout@v2
with:
2020-03-26 15:46:27 +00:00
repository: ${{matrix.repo}}
2020-03-26 15:35:44 +00:00
ref: ${{matrix.ref}}
- name: Test run
uses: ${{github.repository}}@${{github.sha}}
2020-03-26 15:35:44 +00:00
with:
artifacts_directory: artifacts
- name: Check files
run: |
ls -lh artifacts/${{matrix.package}}_*.*
ls -lh ${{matrix.package}}_*.* && false || true
test-source:
runs-on: ubuntu-latest
strategy:
matrix:
package:
- lolcat
- termshark
include:
- package: lolcat
repo: https://salsa.debian.org/ruby-team/lolcat.git
ref: debian/100.0.1-2
- package: termshark
repo: https://salsa.debian.org/go-team/packages/termshark.git
ref: debian/2.0.3-1
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Clone repo
run: |
git clone ${{matrix.repo}} -b ${{matrix.ref}}
- name: Test run
uses: ./
with:
source_directory: ${{matrix.package}}
- name: Check files
run: |
ls -lh ${{matrix.package}}_*.*
test-source-artifacts:
runs-on: ubuntu-latest
strategy:
matrix:
package:
- lolcat
- termshark
include:
- package: lolcat
repo: https://salsa.debian.org/ruby-team/lolcat.git
ref: debian/100.0.1-2
- package: termshark
repo: https://salsa.debian.org/go-team/packages/termshark.git
ref: debian/2.0.3-1
2020-03-25 22:13:26 +00:00
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Clone repo
2020-03-26 15:35:44 +00:00
run: |
git clone ${{matrix.repo}} -b ${{matrix.ref}}
2020-03-25 22:13:26 +00:00
- name: Test run
uses: ./
with:
2020-03-26 15:35:44 +00:00
source_directory: ${{matrix.package}}
artifacts_directory: artifacts
2020-03-26 12:26:07 +00:00
- name: Check files
run: |
2020-03-26 15:35:44 +00:00
ls -lh artifacts/${{matrix.package}}_*.*
ls -lh ${{matrix.package}}_*.* && false || true