ci: add test and build actions
This commit is contained in:
parent
617f6a98cc
commit
df80d5e837
1 changed files with 36 additions and 0 deletions
36
.github/workflows/ci.yml
vendored
Normal file
36
.github/workflows/ci.yml
vendored
Normal file
|
|
@ -0,0 +1,36 @@
|
||||||
|
name: CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push: { branches: ["0.x"] }
|
||||||
|
pull_request: { branches: ["0.x"] }
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
commits:
|
||||||
|
name: Commitlint
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 1000
|
||||||
|
|
||||||
|
- name: Lint commits
|
||||||
|
uses: docker://registry.k1.zportal.co.uk/practically-oss/conventional-tools:0.x
|
||||||
|
with:
|
||||||
|
args: conventional-tools commitlint -l1
|
||||||
|
|
||||||
|
test:
|
||||||
|
name: Build and test
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: sudo apt update && sudo apt install -y luajit build-essential pkg-config cmake
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: cmake -DCMAKE_BUILD_TYPE=Release -B build/Release && (cd build/Release; make -j)
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
run: find lua -name "*_test.lua" | xargs luajit scripts/test.lua
|
||||||
Loading…
Reference in a new issue