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:
27
.github/workflows/ci.yml
vendored
Normal file
27
.github/workflows/ci.yml
vendored
Normal 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
|
@ -29,7 +29,7 @@ func TestTables(t *testing.T) {
|
|||||||
}
|
}
|
||||||
tables := f.Tables()
|
tables := f.Tables()
|
||||||
|
|
||||||
expected := "WayDomains, WayProcesses, Untitled"
|
expected := "Untitled, WayDomains, WayProcesses"
|
||||||
tablesString := ""
|
tablesString := ""
|
||||||
for i, table := range tables {
|
for i, table := range tables {
|
||||||
tablesString += table.Name
|
tablesString += table.Name
|
||||||
|
Reference in New Issue
Block a user