Skip to content

Commit

Permalink
Merge pull request #1 from DEXPRO-Solutions-GmbH/feat/gh-action
Browse files Browse the repository at this point in the history
Add GitHub Action to build,test and lint and setup Dependabot
  • Loading branch information
fabiante authored Dec 14, 2023
2 parents b1d2957 + b4750f3 commit e312fef
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "gomod" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
29 changes: 29 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build

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@v3
with:
go-version: 1.21

- name: Build
run: go build -v ./...

- name: Install Test Runner
run: go install github.com/mfridman/tparse@latest
- name: Test
run: set -o pipefail && go test -json -v ./... | tparse -all

- name: Lint
run: go vet -v ./...

0 comments on commit e312fef

Please sign in to comment.