-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a4de270
commit d46b3aa
Showing
8 changed files
with
119 additions
and
86 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,27 @@ | ||
name: Kodi | ||
on: | ||
- pull_request | ||
- push | ||
# Run action when pushed to master, or for commits in a pull request. | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
jobs: | ||
tests: | ||
kodi-addon-checker: | ||
name: Addon checker | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
kodi-branch: [leia, matrix] | ||
kodi-version: [ leia, matrix ] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
path: ${{ github.repository }} | ||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.8 | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get install xmlstarlet | ||
python -m pip install --upgrade pip | ||
# FIXME: Requires changes from xbmc/addon-check#217 | ||
#pip install kodi-addon-checker | ||
pip install git+git://github.com/xbmc/addon-check.git@master | ||
- name: Remove unwanted files | ||
run: awk '/export-ignore/ { print $1 }' .gitattributes | xargs rm -rf -- | ||
working-directory: ${{ github.repository }} | ||
- name: Rewrite addon.xml for Matrix | ||
run: | | ||
xmlstarlet ed -L -u '/addon/requires/import[@addon="xbmc.python"]/@version' -v "3.0.0" addon.xml | ||
version=$(xmlstarlet sel -t -v 'string(/addon/@version)' addon.xml) | ||
xmlstarlet ed -L -u '/addon/@version' -v "${version}+matrix.99" addon.xml | ||
working-directory: ${{ github.repository }} | ||
if: matrix.kodi-branch == 'matrix' | ||
- name: Check out ${{ github.sha }} from repository ${{ github.repository }} | ||
uses: actions/checkout@v2 | ||
|
||
- name: Run kodi-addon-checker | ||
run: kodi-addon-checker --branch=${{ matrix.kodi-branch }} ${{ github.repository }}/ | ||
uses: xbmc/[email protected] | ||
with: | ||
kodi-version: ${{ matrix.kodi-version }} | ||
rewrite-for-matrix: true | ||
addon-id: ${{ github.event.repository.name }} |
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
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
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
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
Binary file not shown.
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
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