mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-09 20:44:03 -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: windows-latest
|
||||
runs-on: ${{ matrix.os }}
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ${{ github.workspace }}/src
|
||||
steps:
|
||||
- name: Install Go
|
||||
uses: actions/setup-go@v2
|
||||
|
@ -34,5 +37,6 @@ jobs:
|
|||
uses: golangci/golangci-lint-action@v2
|
||||
with:
|
||||
version: v1.31
|
||||
working-directory: src
|
||||
- name: Unit Tests
|
||||
run: go test . -v
|
||||
|
|
3
.github/workflows/gomod.yml
vendored
3
.github/workflows/gomod.yml
vendored
|
@ -5,6 +5,9 @@ on: [pull_request]
|
|||
jobs:
|
||||
go-mod:
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ${{ github.workspace }}/src
|
||||
steps:
|
||||
- name: Install Go
|
||||
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
|
||||
ARTIFACT: posh-windows-amd64.exe
|
||||
runs-on: ${{ matrix.os }}
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ${{ github.workspace }}/src
|
||||
outputs:
|
||||
hash_linux: ${{ steps.hash.outputs.hash_ubuntu-latest }}
|
||||
hash_macos: ${{ steps.hash.outputs.hash_macos-latest }}
|
||||
|
@ -89,7 +92,7 @@ jobs:
|
|||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ needs.release.outputs.upload_url }}
|
||||
asset_path: ${{ matrix.ARTIFACT }}
|
||||
asset_path: src/${{ matrix.ARTIFACT }}
|
||||
asset_name: ${{ matrix.ARTIFACT }}
|
||||
asset_content_type: application/octet-stream
|
||||
- name: Upload Hash Asset
|
||||
|
@ -99,7 +102,7 @@ jobs:
|
|||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ needs.release.outputs.upload_url }}
|
||||
asset_path: ${{ matrix.ARTIFACT }}.sha256
|
||||
asset_path: src/${{ matrix.ARTIFACT }}.sha256
|
||||
asset_name: ${{ matrix.ARTIFACT }}.sha256
|
||||
asset_content_type: text/plain
|
||||
themes:
|
||||
|
|
Loading…
Reference in a new issue