File tree Expand file tree Collapse file tree 8 files changed +10717
-774
lines changed Expand file tree Collapse file tree 8 files changed +10717
-774
lines changed Original file line number Diff line number Diff line change @@ -25,19 +25,40 @@ jobs:
25
25
key : deno-${{ hashFiles('deno.lock') }}
26
26
- run : just ci
27
27
28
- test :
29
- runs-on : ${{ matrix.os }}
28
+ test-default :
30
29
strategy :
31
30
matrix :
32
31
os :
33
32
- ubuntu-latest
34
33
- macos-latest
35
34
- windows-latest
35
+ runs-on : ${{ matrix.os }}
36
36
steps :
37
37
- uses : actions/checkout@v4
38
+ - uses : ./
39
+ - run : flatc --version
38
40
41
+ test-semver :
42
+ strategy :
43
+ matrix :
44
+ os :
45
+ - ubuntu-latest
46
+ - macos-latest
47
+ - windows-latest
48
+ version :
49
+ - " 24.12.23"
50
+ - " 24.3.25"
51
+ runs-on : ${{ matrix.os }}
52
+ steps :
53
+ - uses : actions/checkout@v4
39
54
- uses : ./
40
55
with :
41
- version : " 24.3.25"
42
-
43
- - run : flatc --version
56
+ version : ${{ matrix.version }}
57
+ - shell : bash
58
+ run : |
59
+ ACTUAL=$(flatc --version)
60
+ EXPECTED="flatc version ${{ matrix.version }}"
61
+ if [ "$ACTUAL" != "$EXPECTED" ]; then
62
+ echo "Expected '$EXPECTED', got '$ACTUAL'"
63
+ exit 1
64
+ fi
Original file line number Diff line number Diff line change @@ -5,9 +5,18 @@ for use in your workflows.
5
5
6
6
## Usage
7
7
8
+ Install the latest version:
9
+
10
+ ``` yaml
11
+ - name : Install latest flatc
12
+ uses : Nugine/setup-flatc@v1
13
+ ` ` `
14
+
15
+ Install a specific version:
16
+
8
17
` ` ` yaml
9
18
- name : Install flatc
10
19
uses : Nugine/setup-flatc@v1
11
20
with :
12
- version : " 24.3.25 "
21
+ version : " 24.12.23 "
13
22
` ` `
Original file line number Diff line number Diff line change @@ -8,7 +8,12 @@ branding:
8
8
inputs :
9
9
version :
10
10
description : " The version of flatc to install"
11
- required : true
11
+ required : false
12
+ default : " latest"
13
+ github-token :
14
+ description : " GITHUB_TOKEN"
15
+ required : false
16
+ default : ${{ github.token }}
12
17
13
18
runs :
14
19
using : " node20"
Original file line number Diff line number Diff line change 7
7
"@actions/core" : " npm:@actions/core@^1.11.1" ,
8
8
"@actions/tool-cache" : " npm:@actions/tool-cache@^2.0.1" ,
9
9
"@deno/dnt" : " jsr:@deno/dnt@^0.41.3" ,
10
- "esbuild" : " npm:esbuild@^0.24.0"
10
+ "@std/semver" : " jsr:@std/semver@^1.0.3" ,
11
+ "esbuild" : " npm:esbuild@^0.24.0" ,
12
+ "octokit" : " npm:octokit@^4.0.3"
11
13
}
12
14
}
You can’t perform that action at this time.
0 commit comments