-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
50 lines (50 loc) · 1.68 KB
/
action.yml
File metadata and controls
50 lines (50 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: 'Endless Sky Test Parse'
description: 'An Action to test parse data for https://github.com/endless-sky/endless-sky'
inputs:
repository:
description: 'The repository, usually a plugin, to test parse.'
required: false
default: ${{ github.repository }}
parse-assets:
description: 'Whether or not to check images and sounds.'
required: false
default: false
token:
description: 'The token to use.'
required: false
default: ${{ github.token }}
es-version:
description: 'The name of the tag of the release of Endless Sky to test against. Such as "v0.10.13.1".'
required: false
default: continuous
runs:
using: "composite"
steps:
- name: Download and extract latest continuous
env:
ES_PACKAGE: endless-sky.zip
GH_TOKEN: ${{ inputs.token }}
RELEASE_TAG: ${{ inputs.es-version }}
run: |
gh release download -R endless-sky/endless-sky ${{ env.RELEASE_TAG }} -p '*win64*' -O ${{ env.ES_PACKAGE }}
Expand-Archive ${{ env.ES_PACKAGE }} -DestinationPath endless-sky -Force
shell: PowerShell
- name: Prepare folder structure
run: |
cd .\endless-sky
mkdir plugins
cd .\plugins
mkdir plugin
shell: PowerShell
- uses: actions/checkout@v4
with:
repository: ${{ inputs.repository }}
path: '.\endless-sky\plugins\plugin'
- name: Test parse datafiles
if: ${{ inputs.parse-assets == 'false' }}
run: "'.\\endless-sky\\Endless Sky.exe' -d -p"
shell: bash
- name: Test parse all assets
if: ${{ inputs.parse-assets == 'true' }}
run: "'.\\endless-sky\\Endless Sky.exe' -d --parse-assets"
shell: bash