1
0
mirror of https://github.com/garraflavatra/go-fmp.git synced 2025-06-27 20:15:11 +00:00

Add CI file

This commit is contained in:
2025-06-14 15:24:34 +02:00
parent b94fa28ba9
commit bd871b6457
2 changed files with 28 additions and 1 deletions

27
.github/workflows/ci.yml vendored Normal file
View File

@ -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

View File

@ -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