-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to
tmpl-go
template repository version 0.9.0
Updated to `tmpl-go` version `0.9.0` [1] which... 1. updated to `golangci-lint` version `1.43.0` [2] - new linters are introduced and configurations of already supported ones are improved or added. 2. updated the Go module to Go `1.17` [3]. 3. optimized the GitHub action workflows for Go and Node [4] - the `ci` workflow has been optimized by splitting it into new `ci-go` and `ci-node` workflows. 4. updated to the `tmpl` template repository version `0.10.0` [5]. See the full `tmpl-go` version `0.9.0` changelog [1] for all details. [1]: https://github.com/svengreb/tmpl-go/releases/tag/v0.9.0 [2]: svengreb/tmpl-go#64 [3]: svengreb/tmpl-go#66 [4]: svengreb/tmpl-go#68 [5]: svengreb/tmpl-go#70 GH-104
- Loading branch information
Showing
31 changed files
with
10,313 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Copyright (c) 2020-present Sven Greb <[email protected]> | ||
# Copyright (c) 2019-present Sven Greb <[email protected]> | ||
# This source code is licensed under the MIT license found in the LICENSE file. | ||
|
||
# Configuration for the native Dependabot integration. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,17 +4,21 @@ | |
# GitHub Action Workflow for continuous integration jobs. | ||
# See https://docs.github.com/en/actions and https://github.com/features/actions for more details. | ||
|
||
name: ci | ||
name: ci-go | ||
on: | ||
push: | ||
paths: | ||
- "**.go" | ||
branches: | ||
- main | ||
tags: | ||
- v* | ||
pull_request: | ||
paths: | ||
- "**.go" | ||
|
||
jobs: | ||
lint-node: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Print metadata and context information | ||
|
@@ -24,38 +28,20 @@ jobs: | |
echo "Workflow Actor: $GITHUB_ACTOR" | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: "Setup Node.js version 15" | ||
uses: actions/[email protected] | ||
with: | ||
node-version: "15" | ||
- name: Install Node modules | ||
run: yarn --frozen-lockfile | ||
- name: Run linters | ||
run: yarn lint | ||
lint-go: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Print metadata and context information | ||
run: | | ||
echo "Git SHA: $GITHUB_SHA" | ||
echo "Git Ref: $GITHUB_REF" | ||
echo "Workflow Actor: $GITHUB_ACTOR" | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Install Go | ||
- name: Install Go 1.17 | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: "1.16.x" | ||
go-version: "1.17.x" | ||
- name: "Run golangci-lint" | ||
# The official golangci-lint action created and maintained by the golangci-lint project. | ||
# See https://github.com/golangci/golangci-lint-action for more details. | ||
uses: golangci/[email protected] | ||
with: | ||
version: v1.39 | ||
version: v1.43 | ||
test: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- lint-go | ||
- lint | ||
steps: | ||
- name: Print metadata and context information | ||
run: | | ||
|
@@ -64,9 +50,13 @@ jobs: | |
echo "Workflow Actor: $GITHUB_ACTOR" | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Install Go | ||
- name: Install Go 1.17 | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: "1.16.x" | ||
- name: "Run tests with coverage and race detector" | ||
run: go test -cover -race -v ./... | ||
go-version: "1.17.x" | ||
- name: Bootstrap tools | ||
run: go run make.go bootstrap | ||
- name: Run unit tests with coverage and race detector | ||
run: go run make.go testCover testRace | ||
- name: Run integration tests | ||
run: go run make.go testIntegration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Copyright (c) 2019-present Sven Greb <[email protected]> | ||
# This source code is licensed under the MIT license found in the LICENSE file. | ||
|
||
# GitHub Action Workflow for continuous integration jobs. | ||
# See https://docs.github.com/en/actions and https://github.com/features/actions for more details. | ||
|
||
name: ci-node | ||
on: | ||
push: | ||
paths: | ||
- "**.js" | ||
- "**.json" | ||
- "**.md" | ||
- "**.yaml" | ||
- "**.yml" | ||
branches: | ||
- main | ||
tags: | ||
- v* | ||
pull_request: | ||
paths: | ||
- "**.js" | ||
- "**.json" | ||
- "**.md" | ||
- "**.yaml" | ||
- "**.yml" | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Print metadata and context information | ||
run: | | ||
echo "Git SHA: $GITHUB_SHA" | ||
echo "Git Ref: $GITHUB_REF" | ||
echo "Workflow Actor: $GITHUB_ACTOR" | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Setup Node.js version 16 | ||
uses: actions/[email protected] | ||
with: | ||
node-version: "16" | ||
cache: "npm" | ||
- name: Install Node modules | ||
run: npm ci | ||
- name: Run linters in CI/CD mode | ||
run: npm run lint:ci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Copyright (c) 2020-present Sven Greb <[email protected]> | ||
# Copyright (c) 2019-present Sven Greb <[email protected]> | ||
# This source code is licensed under the MIT license found in the LICENSE file. | ||
|
||
# Configurations for npm. | ||
|
@@ -11,7 +11,7 @@ | |
# multi-consumer projects when any later versions of a used dependency, or its transitive dependencies, is not | ||
# compatible with the own project anymore. | ||
# See https://github.com/svengreb/tmpl/issues/70 for more details. | ||
package-lock=false | ||
package-lock=true | ||
|
||
# Resolve to the latest minor and patch updates. | ||
# Enable to automatically pin dependencies to exact versions instead of resolving to latest minor and patch updates. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
// Copyright (c) 2019-present Sven Greb <[email protected]> | ||
// This source code is licensed under the MIT license found in the LICENSE file. | ||
|
||
//go:build mage | ||
// +build mage | ||
|
||
package main | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
// Copyright (c) 2019-present Sven Greb <[email protected]> | ||
// This source code is licensed under the MIT license found in the LICENSE file. | ||
|
||
//go:build mage | ||
// +build mage | ||
|
||
package main | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
// Copyright (c) 2019-present Sven Greb <[email protected]> | ||
// This source code is licensed under the MIT license found in the LICENSE file. | ||
|
||
package main | ||
|
||
import ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
// Copyright (c) 2019-present Sven Greb <[email protected]> | ||
// This source code is licensed under the MIT license found in the LICENSE file. | ||
|
||
package main | ||
|
||
import ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
// Copyright (c) 2019-present Sven Greb <[email protected]> | ||
// This source code is licensed under the MIT license found in the LICENSE file. | ||
|
||
package main | ||
|
||
import ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
// Copyright (c) 2019-present Sven Greb <[email protected]> | ||
// This source code is licensed under the MIT license found in the LICENSE file. | ||
|
||
//go:build mage | ||
// +build mage | ||
|
||
package main | ||
|
Oops, something went wrong.