Skip to content

Commit

Permalink
chore: update pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
moshloop committed Apr 15, 2024
1 parent 24ff6ad commit f929b22
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,8 @@ updates:
directory: /
schedule:
interval: daily

- package-ecosystem: gitsubmodule
directory: /
schedule:
interval: monthly
18 changes: 18 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Lint
on:
pull_request:

jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.20.x
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
args: --timeout 5m0s --verbose
26 changes: 26 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
name: Test
jobs:
test:
strategy:
matrix:
platform: [ubuntu-latest]
go-version:
- 1.20.x
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Test
run: go test ./...
env:
ASSUME_NO_MOVING_GC_UNSAFE_RISK_IT_WITH: go1.20
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.PHONY: test
test:
go test ./... -v

.PHONY: lint
lint:
golangci-lint run
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/flanksource/is-healthy

go 1.19
go 1.20

require (
github.com/gobwas/glob v0.2.3
Expand Down

0 comments on commit f929b22

Please sign in to comment.