diff options
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/test.yml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..1c33dcc --- /dev/null +++ b/.github/workflows/test.yml | |||
@@ -0,0 +1,29 @@ | |||
1 | name: test | ||
2 | |||
3 | on: [push] | ||
4 | |||
5 | jobs: | ||
6 | test: | ||
7 | strategy: | ||
8 | fail-fast: false | ||
9 | matrix: | ||
10 | luaVersion: ["5.1", "5.2", "5.3", "luajit", "luajit-openresty"] | ||
11 | |||
12 | runs-on: ubuntu-latest | ||
13 | |||
14 | steps: | ||
15 | - uses: actions/checkout@master | ||
16 | |||
17 | - uses: leafo/gh-actions-lua@v3 | ||
18 | with: | ||
19 | luaVersion: ${{ matrix.luaVersion }} | ||
20 | |||
21 | - uses: leafo/gh-actions-luarocks@v2 | ||
22 | |||
23 | - name: build | ||
24 | run: | | ||
25 | luarocks make | ||
26 | |||
27 | - name: test | ||
28 | run: | | ||
29 | ./runtests.sh | ||