Skip to content

Commit

Permalink
ci: Cleanup and normalize workflow systax
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Apr 22, 2022
1 parent bf58fb7 commit 1427eee
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 20 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/busted.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
name: Busted

on: [push, pull_request]
on: [ push, pull_request ]

jobs:

busted:
strategy:
fail-fast: false
matrix:
luaVersion: ["5.4", "5.3", "5.2", "5.1", "luajit", "luajit-openresty"]
penlightVersion: ["1.9.2", "1.8.0", "1.6.0", "1.5.4"]
luaVersion: [ "5.4", "5.3", "5.2", "5.1", "luajit", "luajit-openresty" ]
penlightVersion: [ "1.9.2", "1.8.0", "1.6.0", "1.5.4" ]
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Setup ‘lua’
uses: leafo/gh-actions-lua@v8
uses: leafo/gh-actions-lua@v9
with:
luaVersion: ${{ matrix.luaVersion }}
- name: Setup ‘luarocks’
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/luacheck.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Luacheck

on: [push, pull_request]
on: [ push, pull_request ]

jobs:

Expand Down
32 changes: 18 additions & 14 deletions .github/workflows/luarocks.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
name: Luarocks

on: [push, pull_request]
on: [ push, pull_request ]

jobs:

luarocks:
# More extensive testing gets done when a rockspec is touched, this just
# makes sure expected files didn't shift without updating the rockspec
build:
name: Test bulid on Linux
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup ‘lua’
uses: leafo/gh-actions-lua@v8
- name: Setup ‘luarocks’
uses: leafo/gh-actions-luarocks@v4
- name: Luarocks lint
run: |
luarocks --local lint -- cassowary-scm-0.rockspec
- name: Luarocks make
run: |
luarocks --local make -- cassowary-scm-0.rockspec
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup ‘lua’
uses: leafo/gh-actions-lua@v9
- name: Setup ‘luarocks’
uses: leafo/gh-actions-luarocks@v4
- name: Luarocks lint
run: |
luarocks lint -- cassowary-scm-0.rockspec
- name: Luarocks make
run: |
luarocks make -- cassowary-scm-0.rockspec

0 comments on commit 1427eee

Please sign in to comment.