Skip to content

Commit ed2eac8

Browse files
feat: adjust source code layout
1 parent ef51c9d commit ed2eac8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+12
-2
lines changed

.github/workflows/code.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ jobs:
1919
- os: macos-latest
2020
- os: windows-latest
2121
runs-on: ${{ matrix.os }}
22+
defaults:
23+
run:
24+
working-directory: ${{ github.workspace }}/src
2225
steps:
2326
- name: Install Go
2427
uses: actions/setup-go@v2
@@ -34,5 +37,6 @@ jobs:
3437
uses: golangci/golangci-lint-action@v2
3538
with:
3639
version: v1.31
40+
working-directory: src
3741
- name: Unit Tests
3842
run: go test . -v

.github/workflows/gomod.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on: [pull_request]
55
jobs:
66
go-mod:
77
runs-on: ubuntu-latest
8+
defaults:
9+
run:
10+
working-directory: ${{ github.workspace }}/src
811
steps:
912
- name: Install Go
1013
uses: actions/setup-go@v2

.github/workflows/release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ jobs:
5555
- os: windows-latest
5656
ARTIFACT: posh-windows-amd64.exe
5757
runs-on: ${{ matrix.os }}
58+
defaults:
59+
run:
60+
working-directory: ${{ github.workspace }}/src
5861
outputs:
5962
hash_linux: ${{ steps.hash.outputs.hash_ubuntu-latest }}
6063
hash_macos: ${{ steps.hash.outputs.hash_macos-latest }}
@@ -89,7 +92,7 @@ jobs:
8992
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9093
with:
9194
upload_url: ${{ needs.release.outputs.upload_url }}
92-
asset_path: ${{ matrix.ARTIFACT }}
95+
asset_path: src/${{ matrix.ARTIFACT }}
9396
asset_name: ${{ matrix.ARTIFACT }}
9497
asset_content_type: application/octet-stream
9598
- name: Upload Hash Asset
@@ -99,7 +102,7 @@ jobs:
99102
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
100103
with:
101104
upload_url: ${{ needs.release.outputs.upload_url }}
102-
asset_path: ${{ matrix.ARTIFACT }}.sha256
105+
asset_path: src/${{ matrix.ARTIFACT }}.sha256
103106
asset_name: ${{ matrix.ARTIFACT }}.sha256
104107
asset_content_type: text/plain
105108
themes:
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)