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