Skip to content

Commit

Permalink
ci: init
Browse files Browse the repository at this point in the history
  • Loading branch information
axelrindle committed Nov 27, 2024
1 parent c52a5a6 commit 79668c8
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- directory: /
package-ecosystem: gomod
schedule:
interval: monthly
- directory: /.github/workflows
package-ecosystem: github-actions
schedule:
interval: monthly
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CI

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-go@v5

- uses: arduino/setup-task@v2
with:
version: 3.x

- name: Build
run: task build:debug
env:
BUILD_VERSION: "ci-${{ github.run_number }}"
BUILD_COMMIT: "${{ github.sha }}"

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-go@v5

- uses: arduino/setup-task@v2
with:
version: 3.x

- name: Run tests
run: task test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,4 @@ Temporary Items
.task/
dist/
*.env
coverage.out

0 comments on commit 79668c8

Please sign in to comment.