mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-03-05 20:49:04 -08:00
feat: adjust source code layout
This commit is contained in:
parent
ef51c9d3c5
commit
ed2eac8e12
4
.github/workflows/code.yml
vendored
4
.github/workflows/code.yml
vendored
|
@ -19,6 +19,9 @@ jobs:
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: ${{ github.workspace }}/src
|
||||||
steps:
|
steps:
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v2
|
||||||
|
@ -34,5 +37,6 @@ jobs:
|
||||||
uses: golangci/golangci-lint-action@v2
|
uses: golangci/golangci-lint-action@v2
|
||||||
with:
|
with:
|
||||||
version: v1.31
|
version: v1.31
|
||||||
|
working-directory: src
|
||||||
- name: Unit Tests
|
- name: Unit Tests
|
||||||
run: go test . -v
|
run: go test . -v
|
||||||
|
|
3
.github/workflows/gomod.yml
vendored
3
.github/workflows/gomod.yml
vendored
|
@ -5,6 +5,9 @@ on: [pull_request]
|
||||||
jobs:
|
jobs:
|
||||||
go-mod:
|
go-mod:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: ${{ github.workspace }}/src
|
||||||
steps:
|
steps:
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v2
|
||||||
|
|
7
.github/workflows/release.yml
vendored
7
.github/workflows/release.yml
vendored
|
@ -55,6 +55,9 @@ jobs:
|
||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
ARTIFACT: posh-windows-amd64.exe
|
ARTIFACT: posh-windows-amd64.exe
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: ${{ github.workspace }}/src
|
||||||
outputs:
|
outputs:
|
||||||
hash_linux: ${{ steps.hash.outputs.hash_ubuntu-latest }}
|
hash_linux: ${{ steps.hash.outputs.hash_ubuntu-latest }}
|
||||||
hash_macos: ${{ steps.hash.outputs.hash_macos-latest }}
|
hash_macos: ${{ steps.hash.outputs.hash_macos-latest }}
|
||||||
|
@ -89,7 +92,7 @@ jobs:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ needs.release.outputs.upload_url }}
|
upload_url: ${{ needs.release.outputs.upload_url }}
|
||||||
asset_path: ${{ matrix.ARTIFACT }}
|
asset_path: src/${{ matrix.ARTIFACT }}
|
||||||
asset_name: ${{ matrix.ARTIFACT }}
|
asset_name: ${{ matrix.ARTIFACT }}
|
||||||
asset_content_type: application/octet-stream
|
asset_content_type: application/octet-stream
|
||||||
- name: Upload Hash Asset
|
- name: Upload Hash Asset
|
||||||
|
@ -99,7 +102,7 @@ jobs:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ needs.release.outputs.upload_url }}
|
upload_url: ${{ needs.release.outputs.upload_url }}
|
||||||
asset_path: ${{ matrix.ARTIFACT }}.sha256
|
asset_path: src/${{ matrix.ARTIFACT }}.sha256
|
||||||
asset_name: ${{ matrix.ARTIFACT }}.sha256
|
asset_name: ${{ matrix.ARTIFACT }}.sha256
|
||||||
asset_content_type: text/plain
|
asset_content_type: text/plain
|
||||||
themes:
|
themes:
|
||||||
|
|
Loading…
Reference in a new issue