Jianw
2025-05-13 3b39fe3810c3ee2ec9ec97236c1769c5c85e062c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
name: build
 
on:
  push:
    branches: [ "master", "main" ]
  pull_request:
    branches: [ "master", "main" ]
  workflow_call:  # enable calling this workflow inside other (such as the deploy one)
jobs:
  build:
    runs-on: ubuntu-latest
    env:
      LUA_ROCKS_API_KEY: ${{ secrets.LUA_ROCKS_API_KEY }}
 
    steps:
    - uses: actions/checkout@v4
    - name: Build the Docker test image
      run: docker-compose build test
    - name: Run tests
      run: docker-compose run --rm test