From f61f6649d3617537fbbec6da4fe7c4c03682ef85 Mon Sep 17 00:00:00 2001 From: Kai O'Reilly Date: Sat, 6 Apr 2024 10:10:05 -0700 Subject: [PATCH] remove old config file; add ci --- .core/config.toml | 4 ---- .github/workflows/go.yml | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 4 deletions(-) delete mode 100644 .core/config.toml create mode 100644 .github/workflows/go.yml diff --git a/.core/config.toml b/.core/config.toml deleted file mode 100644 index 05c56c6..0000000 --- a/.core/config.toml +++ /dev/null @@ -1,4 +0,0 @@ -ID = 'com.emer.gosl.v2' -Name = 'gosl' -Type = 'Library' -Version = 'v2.0.0-dev0.0.10' diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..6ef2d63 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,34 @@ +name: Go + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.22' + + - name: Set up Core + run: go install cogentcore.org/core/core@main && core setup + + - name: Build + run: go build -v ./... + + - name: Test + run: go test -v ./... -coverprofile cover.out + + - name: Update coverage report + uses: ncruces/go-coverage-report@v0 + with: + coverage-file: cover.out + if: github.event_name == 'push'