Skip to content

Commit

Permalink
Merge pull request #90 from karl-cardenas-coding/dep-upgrade
Browse files Browse the repository at this point in the history
fix: updated dependencies and added license docs
  • Loading branch information
karl-cardenas-coding committed Apr 24, 2023
2 parents 239a13e + b995f6c commit ae5ec8f
Show file tree
Hide file tree
Showing 25 changed files with 6,101 additions and 11,118 deletions.
14 changes: 14 additions & 0 deletions .copywrite.hcl
@@ -0,0 +1,14 @@
schema_version = 1

project {
license = "MIT"
copyright_year = 2020

# (OPTIONAL) A list of globs that should not have copyright/license headers.
# Supports doublestar glob patterns for more flexibility in defining which
# files or folders should be ignored
header_ignore = [
# "vendors/**",
# "**autogen**",
]
}
7 changes: 5 additions & 2 deletions .github/depandabot.yml
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MIT

# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
Expand All @@ -8,11 +11,11 @@ updates:
- package-ecosystem: "github-actions" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
interval: "monthly"


- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "weekly"
interval: "monthly"

4 changes: 2 additions & 2 deletions .github/dependabot.yml
Expand Up @@ -3,8 +3,8 @@ updates:
- package-ecosystem: gomod
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
interval: monthly
open-pull-requests-limit: 1
ignore:
- dependency-name: github.com/sirupsen/logrus
versions:
Expand Down
33 changes: 16 additions & 17 deletions .github/workflows/build.yml
Expand Up @@ -20,13 +20,13 @@ jobs:
steps:
-
id: go
name: "Set up Go 1.17"
uses: actions/setup-go@v1
name: "Set up Go 1.20"
uses: actions/setup-go@v4.0.0
with:
go-version: 1.17
go-version: 1.20
-
name: "Check out code into the Go module directory"
uses: actions/checkout@v2
uses: actions/checkout@v3
-
name: "Get dependencies"
id: dependencies
Expand All @@ -36,8 +36,7 @@ jobs:
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
npm install
npm install @semantic-release/exec -D
npm ci
npx semantic-release --dry-run
cat VERSION.env
source VERSION.env
Expand All @@ -62,10 +61,10 @@ jobs:
steps:
-
id: go
name: "Set up Go 1.17"
uses: actions/setup-go@v1
name: "Set up Go 1.20"
uses: ctions/setup-go@v4.0.0
with:
go-version: 1.17
go-version: 1.20
-
name: "Check out code into the Go module directory"
uses: actions/checkout@v2
Expand Down Expand Up @@ -104,10 +103,10 @@ jobs:
steps:
-
id: go
name: "Set up Go 1.17"
uses: actions/setup-go@v1
name: "Set up Go 1.20"
uses: ctions/setup-go@v4.0.0
with:
go-version: 1.17
go-version: 1.20
-
name: "Check out code into the Go module directory"
uses: actions/checkout@v2
Expand Down Expand Up @@ -147,9 +146,9 @@ jobs:
-
id: go
name: "Set up Go"
uses: actions/setup-go@v1
uses: ctions/setup-go@v4.0.0
with:
go-version: 1.17
go-version: 1.20
-
name: "Check out code into the Go module directory"
uses: actions/checkout@v2
Expand Down Expand Up @@ -193,10 +192,10 @@ jobs:
steps:
-
id: go
name: "Set up Go 1.17"
uses: actions/setup-go@v1
name: "Set up Go 1.20"
uses: ctions/setup-go@v4.0.0
with:
go-version: 1.17
go-version: 1.20
-
name: "Check out code into the Go module directory"
uses: actions/checkout@v2
Expand Down
39 changes: 24 additions & 15 deletions .github/workflows/test.yml
Expand Up @@ -15,33 +15,41 @@ jobs:
runs-on: ubuntu-latest
steps:


- name: Set up Go
uses: actions/setup-go@v1
uses: actions/setup-go@v3
with:
go-version: 1.17
go-version: '1.20'
check-latest: true
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v2
uses: actions/checkout@v3

-
name: "Get dependencies"
id: dependencies
run: |
go get -v -t -d ./...
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
- name: Go Tests
run: |
go test ./...
- name: next version
run: |
npm ci
npm install @semantic-release/exec -D
npx semantic-release --dry-run
- name: Get dependencies
run: |
go get -v -t -d ./...
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v$LINT_VERSION
- name: go-linter
run: |
$(go env GOPATH)/bin/golangci-lint run -v
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
args: -v

- name: test
run: |
Expand Down Expand Up @@ -86,3 +94,4 @@ jobs:
with:
name: test-results
path: go.txt
retention-days: 1
3 changes: 3 additions & 0 deletions .releaserc.yml
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MIT

branches: [main]
repositoryUrl: https://github.com/karl-cardenas-coding/disaster-cli.git
plugins:
Expand Down
8 changes: 8 additions & 0 deletions Makefile
@@ -0,0 +1,8 @@
license:
@echo "Applying license headers..."
copywrite headers


opensource:
@echo "Checking for open source licenses"
~/go/bin/go-licenses report github.com/karl-cardenas-coding/disaster-cli --template=documentation/open-source.tpl > documentation/open-source.md
10 changes: 7 additions & 3 deletions README.md
@@ -1,4 +1,4 @@
[![Actions Status](https://github.com/karl-cardenas-coding/disaster-cli/workflows/Go/badge.svg?branch=master)](https://github.com/karl-cardenas-coding/disaster-cli/actions?branch=main)
[![Actions Status](https://github.com/karl-cardenas-coding/disaster-cli/workflows/Go/badge.svg?branch=main)](https://github.com/karl-cardenas-coding/disaster-cli/actions?branch=main)
[![Go version](https://img.shields.io/github/go-mod/go-version/karl-cardenas-coding/disaster-cli)](https://golang.org/dl/)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
[![Total alerts](https://img.shields.io/lgtm/alerts/g/karl-cardenas-coding/disaster-cli.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/karl-cardenas-coding/disaster-cli/alerts/)
Expand Down Expand Up @@ -50,12 +50,16 @@ For more info visit https://api.nasa.gov/

## Helpful Links

API Documentation: https://eonet.sci.gsfc.nasa.gov/docs/v3
API Documentation: https://eonet.gsfc.nasa.gov/docs/v3

Golang Cobra CLI Framework:https://github.com/spf13/cobra

Go-pretty: https://github.com/jedib0t/go-pretty

Source: https://eonet.sci.gsfc.nasa.gov/docs/v3
Source: https://eonet.gsfc.nasa.gov/

UI: https://worldview.earthdata.nasa.gov/

## Open Source Licenses

All utilized open-source licenses can be found in the [Open Source Acknowledgements](./documentation/open-source.md) resource.
3 changes: 3 additions & 0 deletions cmd/categories.go
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MIT

package cmd

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/disaster.go
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MIT

package cmd

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/events.go
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MIT

package cmd

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/update.go
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MIT

package cmd

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/version.go
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MIT

package cmd

import (
Expand Down

0 comments on commit ae5ec8f

Please sign in to comment.