Skip to content

Commit 4757c18

Browse files
committedNov 16, 2019
workflow: self test
1 parent e88cc01 commit 4757c18

File tree

4 files changed

+39
-1
lines changed

4 files changed

+39
-1
lines changed
 

‎.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
lib/* linguist-vendored
22
node_modules/* linguist-vendored
3+
__tests__/* linguist-vendored

‎.github/workflows/workflow.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Main Workflow
2+
3+
on: [push]
4+
5+
jobs:
6+
run:
7+
name: Run action
8+
runs-on: ${{ matrix.operating-systems }}
9+
strategy:
10+
matrix:
11+
operating-systems: [ubuntu-latest, windows-latest, macos-latest]
12+
13+
steps:
14+
- uses: actions/checkout@v1
15+
16+
- name: Setup SourcePawn Compiler
17+
uses: rumblefrog/setup-sp@master
18+
with:
19+
version: "1.11.x"
20+
21+
# For some reason, mac compiler doesn't use the include directory in which the compiler is in
22+
- name: Verify compiler
23+
run: |
24+
which spcomp
25+
echo $includePath
26+
spcomp -i$includePath __tests__/compile.sp

‎README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Setup SourcePawn Action
22

3+
![](https://github.com/rumblefrog/setup-sp/workflows/Main%20Workflow/badge.svg)
4+
35
This action sets-up, cache and adds sourcemod scripting directory to the path
46

57
# Usage
@@ -27,7 +29,7 @@ jobs:
2729
runs-on: ubuntu-latest
2830
strategy:
2931
matrix:
30-
sm-version: [ '1.10.x', '1.11.x', '1.11.6467']
32+
sm-version: [ '1.10.x', '1.11.x', '1.11.6467', '>= 1.11.6478']
3133

3234
name: SM version ${{ matrix.sm-version }}
3335
steps:

‎__tests__/compile.sp

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#include <sourcemod>
2+
3+
#pragma semicolon 1
4+
#pragma newdecls required
5+
6+
public void OnPluginStart()
7+
{
8+
PrintToServer("Hello, World!");
9+
}

0 commit comments

Comments
 (0)
Please sign in to comment.