Skip to content
This repository has been archived by the owner on Jul 1, 2023. It is now read-only.

Commit

Permalink
.github: Add workflow for Golang (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxinden committed Jul 23, 2021
1 parent a0e7a39 commit b05cad6
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 83 deletions.
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ updates:
directory: "/rust"
schedule:
interval: "daily"
- package-ecosystem: "gomod"
directory: "/golang"
schedule:
interval: "daily"
29 changes: 29 additions & 0 deletions .github/workflows/makefile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
on: [push, pull_request]
name: makefile

jobs:
make:
runs-on: ubuntu-latest
name: Build
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- uses: actions/setup-go@v2
with:
go-version: "1.16.x"
- name: Check that go.mod is tidy
run: |
cd golang
go mod tidy
if [[ -n $(git ls-files --other --exclude-standard --directory -- go.sum) ]]; then
echo "go.sum was added by go mod tidy"
exit 1
fi
git diff --exit-code -- go.sum go.mod
- name: Make
run: make
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
on: [push, pull_request]

name: Continuous integration
name: rust

jobs:
check:
Expand Down
1 change: 0 additions & 1 deletion golang/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ require (
github.com/libp2p/go-libp2p-core v0.5.3
github.com/libp2p/go-libp2p-noise v0.1.1
github.com/libp2p/go-libp2p-yamux v0.2.7
github.com/libp2p/go-tcp-transport v0.2.0
github.com/multiformats/go-multiaddr v0.2.1
)
Loading

0 comments on commit b05cad6

Please sign in to comment.