Skip to content

feat: added all math constants #18

feat: added all math constants

feat: added all math constants #18

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
jobs:
test:
name: build & test (${{ matrix.os }})
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
# The default build compiles the headless ui stub, so no cgo/OpenGL
# toolchain is needed (the Fyne backend is gated behind -tags luascript_ui).
- name: Build
run: go build ./...
- name: Vet
run: go vet ./...
- name: Test
run: go test ./...
- name: Smoke-test examples
shell: bash
run: |
go run ./cmd/luascript examples/01_basics.lsc
go run ./cmd/luascript examples/02_functions.lsc
gofmt:
name: gofmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Check formatting
run: |
unformatted=$(gofmt -l .)
if [ -n "$unformatted" ]; then
echo "The following files are not gofmt-formatted:"
echo "$unformatted"
exit 1
fi