Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: Use golang-action v0.10.1 with Task to run CI steps concurrently remote and locally #3

Merged
merged 2 commits into from
Nov 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions .github/workflows/golang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,26 @@ permissions:
contents: read
packages: read
jobs:
mcvs-golang-action:
MCVS-golang-action:
env:
TASK_X_REMOTE_TASKFILES: 1
runs-on: ubuntu-22.04
steps:
- uses: actions/[email protected].1
- uses: schubergphilis/mcvs-golang-action@v0.8.3
- uses: actions/[email protected].2
- uses: schubergphilis/mcvs-golang-action@v0.10.1
with:
code_coverage_expected: 62.3
code-coverage-expected: 62.3
gci: "false"
golang-unit-tests-exclusions: |-
\(cmd\/prolayout\)
golangci-lint-version: v1.61.0
testing-type: ${{ matrix.testing-type }}
strategy:
matrix:
testing-type:
- coverage
- lint
- security-golang-modules
- security-grype
- security-trivy
- unit
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.task
.vscode
reports
Empty file added .trivyignore
Empty file.
21 changes: 17 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,25 @@
# ProLayout

Pro(ject) layout is a static analysis tool that allow you to lint the project structure of your go project.
Pro(ject) layout is a static analysis tool that allow you to lint the project
structure of your go project.

# Why
## Development

Since Go does not enforce any real project structure, we wanted to have a static analysis tool, to help us to ensure projects are structured in a similar fashion.
Either use `make` or `task`:

# Example configuration file
### Task

```zsh
TASK_X_REMOTE_TASKFILES=1 task test-all --yes
```

## Why

Since Go does not enforce any real project structure, we wanted to have a
static analysis tool, to help us to ensure projects are structured in a similar
fashion.

## Example configuration file

```YAML
module: "github.com/wimspaargaren/prolayout"
Expand Down
17 changes: 17 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
version: 3

vars:
REMOTE_URL: https://raw.githubusercontent.com
REMOTE_URL_REF: v0.9.4
REMOTE_URL_REPO: schubergphilis/mcvs-golang-action

includes:
remote: >-
{{.REMOTE_URL}}/{{.REMOTE_URL_REPO}}/{{.REMOTE_URL_REF}}/Taskfile.yml

tasks:
test-all:
deps:
- task: remote:golangci-lint
- task: remote:test
Loading