Skip to content

Commit

Permalink
Merge pull request #2 from winebarrel/add-ci
Browse files Browse the repository at this point in the history
Add CI
  • Loading branch information
winebarrel committed Jun 17, 2023
2 parents 64b2bf7 + 0aa7cbb commit 7e7d8fc
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
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:
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
20 changes: 20 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: test
on:
pull_request:
push:
schedule:
- cron: '0 0 1 * *'
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: ">=1.20.5"
- uses: golangci/golangci-lint-action@v3
with:
args: -E misspell,gofmt
- run: make
env:
TEST_GCAL_API_KEY: ${{ secrets.TEST_GCAL_API_KEY }}
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ vet:

.PHONY: lint
lint:
golangci-lint run
golangci-lint run -E misspell,gofmt

.PHONY: test
test:
Expand Down

0 comments on commit 7e7d8fc

Please sign in to comment.