Skip to content

Commit

Permalink
build: Use golang-action v0.9.4
Browse files Browse the repository at this point in the history
  • Loading branch information
sbp-bvanb committed Nov 1, 2024
1 parent c44834f commit 88220dd
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 8 deletions.
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/checkout@v4.2.1
- uses: schubergphilis/mcvs-golang-action@v0.8.3
- uses: actions/checkout@v4.1.1
- uses: schubergphilis/mcvs-golang-action@v0.9.4
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

0 comments on commit 88220dd

Please sign in to comment.