berwynhoyt activity triggered automation workflow #18
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: automation | |
run-name: ${{github.actor}} activity triggered automation workflow | |
# Handy linter: https://rhysd.github.io/actionlint/ | |
on: | |
push: | |
branches: [master,test_automation] | |
pull_request: | |
branches: [master] | |
workflow_dispatch: | |
jobs: | |
test_matrix: | |
strategy: | |
matrix: | |
lua_version: [5.1, 5.2, 5.3, 5.4] | |
runs-on: ubuntu-latest | |
env: | |
lua_dev_package: liblua${{ matrix.lua_version == '5.1' && '5.1-0' || matrix.lua_version }}-dev | |
lua_version: ${{ matrix.lua_version }} | |
steps: | |
- name: Checkout lua-yottadb | |
uses: actions/checkout@v4 | |
- uses: tecolicom/actions-use-apt-tools@v1 | |
with: | |
tools: lua${{ env.lua_version }} ${{ env.lua_dev_package }} | |
key: apt-cache-lua${{ env.lua_version }} | |
- name: Install YottaDB | |
run: | | |
mkdir -p ydb_setup | |
cd ydb_setup | |
wget https://download.yottadb.com/ydbinstall.sh \ | |
&& chmod +x ydbinstall.sh \ | |
&& sudo ./ydbinstall.sh --utf8 | |
- name: Testing | |
run: make test lua=lua$lua_version | |
check: # This job does nothing and is only used for the branch protection | |
if: always() | |
needs: | |
- test_matrix | |
runs-on: ubuntu-latest | |
steps: | |
- name: Decide whether the needed jobs succeeded or failed | |
uses: re-actors/alls-green@release/v1 | |
with: | |
jobs: ${{ toJSON(needs) }} |