-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(#3) Path and Wesnoth version parameters.
- Loading branch information
Showing
4 changed files
with
38 additions
and
22 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,19 +1,8 @@ | ||
FROM python:3.10 | ||
FROM python:3.10-slim | ||
|
||
RUN apt-get update >/dev/null && \ | ||
apt-get upgrade -y >/dev/null && \ | ||
apt-get install -y git | ||
|
||
RUN echo "Cloning Wesnoth ${WESNOTH_VERSION:-master}." && \ | ||
git clone \ | ||
--depth 1 \ | ||
--filter=blob:none \ | ||
--sparse \ | ||
--single-branch --branch ${WESNOTH_VERSION:-master} \ | ||
https://github.com/wesnoth/wesnoth \ | ||
/wesnoth | ||
WORKDIR /wesnoth | ||
RUN git sparse-checkout set data/tools/ | ||
|
||
COPY entrypoint.sh /entrypoint.sh | ||
ENTRYPOINT ["/entrypoint.sh"] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,17 @@ | ||
name: 'WML Linter' | ||
description: 'Runs wmllint and wmlindent to verify the WML files.' | ||
inputs: | ||
path: | ||
description: 'Path to file or directory that should be validated.' | ||
required: true | ||
default: . | ||
wesnoth-version: | ||
description: 'Wesnoth repository branch or tag to check against.' | ||
required: false | ||
default: master | ||
runs: | ||
using: 'docker' | ||
image: 'Dockerfile' | ||
args: | ||
- ${{ inputs.path }} | ||
- ${{ inputs.wesnoth-version }} |
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