Skip to content

Commit

Permalink
chore: Add GitHub Actions and dependabot configurations
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Matouschek <[email protected]>
  • Loading branch information
0xFelix committed Nov 30, 2024
1 parent 0fe60fc commit 835c1c3
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
updates:
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "weekly"
assignees:
- "0xFelix"
49 changes: 49 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: CI

on:
pull_request:

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Golang
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Run make lint
run: make lint

check_for_uncommitted_changes:
name: Check for uncommitted changes
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Golang
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Run make fmt
run: make fmt
- name: Check for uncommitted changes
run: |
if ! status=$(git status --porcelain) || [ -n "$status" ]; then
echo "There are uncommitted changes."
echo "${status}"
exit 1
fi
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Golang
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Build tg-led
run: make build

0 comments on commit 835c1c3

Please sign in to comment.