From bd871b64570dd18c69c2ae8d14ac1c12e36807d0 Mon Sep 17 00:00:00 2001 From: Romein van Buren Date: Sat, 14 Jun 2025 15:24:34 +0200 Subject: [PATCH] Add CI file --- .github/workflows/ci.yml | 27 +++++++++++++++++++++++++++ fmp/fmp_test.go | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..a160c95 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,27 @@ +name: CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.20' + + - name: Build + run: go build -v ./... + working-directory: fmp + + - name: Test + run: go test -v ./... + working-directory: fmp diff --git a/fmp/fmp_test.go b/fmp/fmp_test.go index 58413a4..5fd2a2f 100644 --- a/fmp/fmp_test.go +++ b/fmp/fmp_test.go @@ -29,7 +29,7 @@ func TestTables(t *testing.T) { } tables := f.Tables() - expected := "WayDomains, WayProcesses, Untitled" + expected := "Untitled, WayDomains, WayProcesses" tablesString := "" for i, table := range tables { tablesString += table.Name