Skip to content

Commit

Permalink
improve ci
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoreilly committed Apr 6, 2024
1 parent 3a9df88 commit ed0685c
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 54 deletions.
54 changes: 0 additions & 54 deletions .github/workflows/ci.yml

This file was deleted.

34 changes: 34 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit ed0685c

Please sign in to comment.