Skip to content

Commit

Permalink
switch to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jakewarren committed Mar 5, 2023
1 parent 8b13574 commit 9591bd9
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 50 deletions.
49 changes: 0 additions & 49 deletions .circleci/config.yml

This file was deleted.

12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2
updates:
- package-ecosystem: gomod
directory: "/"
schedule:
interval: weekly
open-pull-requests-limit: 10
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: weekly
open-pull-requests-limit: 10
21 changes: 21 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: lint
on:
push:
pull_request:

jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
# Optional: show only new issues if it's a pull request. The default value is `false`.
only-new-issues: true
# show file name and line numbers in output
args: --timeout 15m0s --verbose --out-${NO_FUTURE}format colored-line-number -D errcheck

- name: test
run: go test -v ./...
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
on:
push:
tags:
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10

name: Release

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# defang

[![](https://godoc.org/github.com/jakewarren/defang?status.svg)](http://godoc.org/github.com/jakewarren/defang)
[![CircleCI](https://circleci.com/gh/jakewarren/defang.svg?style=shield)](https://circleci.com/gh/jakewarren/defang)
[![Build Status](https://github.com/jakewarren/defang/workflows/lint/badge.svg)](https://github.com/jakewarren/defang/actions)
[![GitHub release](http://img.shields.io/github/release/jakewarren/defang.svg?style=flat-square)](https://github.com/jakewarren/defang/releases])
[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/jakewarren/defang/blob/master/LICENSE)
[![Go Report Card](https://goreportcard.com/badge/github.com/jakewarren/defang)](https://goreportcard.com/report/github.com/jakewarren/defang)
Expand Down

0 comments on commit 9591bd9

Please sign in to comment.