mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-03-05 20:49:04 -08:00
chore: add fieldalignment action
This commit is contained in:
parent
cefe985bf7
commit
38452b92a8
11
.github/workflows/code.yml
vendored
11
.github/workflows/code.yml
vendored
|
@ -19,16 +19,17 @@ jobs:
|
||||||
run:
|
run:
|
||||||
working-directory: ${{ github.workspace }}/src
|
working-directory: ${{ github.workspace }}/src
|
||||||
steps:
|
steps:
|
||||||
- name: Install Go
|
|
||||||
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed
|
|
||||||
with:
|
|
||||||
go-version: 1.21
|
|
||||||
cache-dependency-path: src/go.sum
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
||||||
|
- name: Install Go 🗳
|
||||||
|
uses: ./.github/workflows/composite/bootstrap-go
|
||||||
- name: Golang CI
|
- name: Golang CI
|
||||||
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8
|
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8
|
||||||
with:
|
with:
|
||||||
working-directory: src
|
working-directory: src
|
||||||
|
- name: Fieldalignment
|
||||||
|
run: |
|
||||||
|
go install golang.org/x/tools/go/analysis/passes/fieldalignment/cmd/fieldalignment@latest
|
||||||
|
fieldalignment "./..."
|
||||||
- name: Unit Tests
|
- name: Unit Tests
|
||||||
run: go test -v ./...
|
run: go test -v ./...
|
||||||
|
|
7
.github/workflows/codeql.yml
vendored
7
.github/workflows/codeql.yml
vendored
|
@ -19,13 +19,10 @@ jobs:
|
||||||
run:
|
run:
|
||||||
working-directory: ${{ github.workspace }}/src
|
working-directory: ${{ github.workspace }}/src
|
||||||
steps:
|
steps:
|
||||||
- name: Install Go
|
|
||||||
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed
|
|
||||||
with:
|
|
||||||
go-version: 1.21
|
|
||||||
cache-dependency-path: src/go.sum
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
||||||
|
- name: Install Go 🗳
|
||||||
|
uses: ./.github/workflows/composite/bootstrap-go
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
uses: github/codeql-action/init@662472033e021d55d94146f66f6058822b0b39fd
|
uses: github/codeql-action/init@662472033e021d55d94146f66f6058822b0b39fd
|
||||||
with:
|
with:
|
||||||
|
|
10
.github/workflows/docs.yml
vendored
10
.github/workflows/docs.yml
vendored
|
@ -22,12 +22,10 @@ jobs:
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Install Go
|
- name: Install Go 🗳
|
||||||
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed
|
uses: ./.github/workflows/composite/bootstrap-go
|
||||||
with:
|
- name: Setup Node.js
|
||||||
go-version: 1.21
|
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6
|
||||||
cache-dependency-path: src/go.sum
|
|
||||||
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af
|
|
||||||
with:
|
with:
|
||||||
node-version: 20.9.0
|
node-version: 20.9.0
|
||||||
# Create Kind cluster to have a Kubernetes context for cloud-native-azure theme
|
# Create Kind cluster to have a Kubernetes context for cloud-native-azure theme
|
||||||
|
|
7
.github/workflows/gomod.yml
vendored
7
.github/workflows/gomod.yml
vendored
|
@ -9,13 +9,10 @@ jobs:
|
||||||
run:
|
run:
|
||||||
working-directory: ${{ github.workspace }}/src
|
working-directory: ${{ github.workspace }}/src
|
||||||
steps:
|
steps:
|
||||||
- name: Install Go
|
|
||||||
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed
|
|
||||||
with:
|
|
||||||
go-version: 1.21
|
|
||||||
cache-dependency-path: src/go.sum
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
||||||
|
- name: Install Go 🗳
|
||||||
|
uses: ./.github/workflows/composite/bootstrap-go
|
||||||
- name: Check for unused dependencies
|
- name: Check for unused dependencies
|
||||||
run: |
|
run: |
|
||||||
go mod tidy
|
go mod tidy
|
||||||
|
|
Loading…
Reference in a new issue