Skip to content

Commit

Permalink
Try setting up github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
upamanyus committed Jul 21, 2024
1 parent 3ccaa37 commit e787d30
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 112 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI

on:
push:
branches:
- main
- new
pull_request:
schedule:
# every week on Monday at 7am UTC
- cron: "0 7 * * MON"

jobs:
test:
strategy:
matrix:
go-version: ["stable"]
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Install dependencies
run: |
go get -t ./...
- name: Check style
run: |
gofmt -w .
git diff --exit-code
- name: Test
run: |
make
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ check:
test -z "$$(gofmt -d -s .)"
go vet -composites=false ./...
go build ./...
go test ./...

fix:
gofmt -w -s .
45 changes: 0 additions & 45 deletions cmd/rpcscale/test_test.go

This file was deleted.

67 changes: 0 additions & 67 deletions urpc/cmd/bench_test.go

This file was deleted.

0 comments on commit e787d30

Please sign in to comment.