diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..f927cb8 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,22 @@ +name: Tests + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Install Lua + run: | + sudo apt-get update + sudo apt-get install -y lua5.4 + + - name: Run tests + run: cd tst && lua5.4 all.lua diff --git a/README.md b/README.md index cb6a709..675d2a2 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # f-streams +[![Tests][badge]][test] + ***Pull-based Streams for Lua*** [ @@ -7,6 +9,9 @@ [`v0.1`](https://github.com/lua-atmos/f-streams/tree/v0.1) ] +[badge]: https://github.com/lua-atmos/f-streams/actions/workflows/test.yml/badge.svg +[test]: https://github.com/lua-atmos/f-streams/actions/workflows/test.yml + This is the unstable `main` branch. Please, switch to stable [`v0.2`](https://github.com/lua-atmos/f-streams/tree/v0.2).