github.com/arnodel/golua@v0.0.0-20230215163904-e0b5347eaaa1/.github/workflows/go.yml (about) 1 name: Go 2 3 on: 4 push: 5 pull_request: 6 7 jobs: 8 9 build: 10 runs-on: ${{ matrix.os }} 11 strategy: 12 matrix: 13 build_tags: 14 - 'dummytagforwindows' # Non existent tag because windows shell drops empty arguments 15 - 'noquotas' 16 - 'nocontpool noregpool' 17 - 'noquotas nocontpool noregpool' 18 - 'safepool' 19 os: 20 - ubuntu-latest 21 - macOS-latest 22 - windows-latest 23 24 steps: 25 - uses: actions/checkout@v2 26 27 - name: Set up Go 28 uses: actions/setup-go@v2 29 with: 30 go-version: 1.17 31 32 - name: All tests 33 run: go test -tags "${{ matrix.build_tags }}" -coverprofile="coverage.txt" -covermode=atomic ./... 34 35 - name: Upload coverage to Codecov 36 uses: codecov/codecov-action@v2 37 with: 38 files: ./coverage.txt 39 name: codecov-all-tests 40 verbose: true 41 42 - name: Build CLI 43 run: go build -tags "${{ matrix.build_tags }}" 44 45 - name: Check out Lua Test Suite 5.4.3 46 uses: actions/checkout@v2 47 with: 48 repository: arnodel/golua-tests 49 ref: golua-5.4 50 path: ./lua-test-suite 51 52 - name: Run Lua Test Suite 53 run: ../golua -u -e "_U=true" -e "_OS='${{ matrix.os }}'" all.lua 54 working-directory: ./lua-test-suite