feat: adjust source code layout

This commit is contained in:
Jan De Dobbeleer 2020-12-25 20:02:25 +01:00 committed by Jan De Dobbeleer
parent ef51c9d3c5
commit ed2eac8e12
74 changed files with 12 additions and 2 deletions

View file

@ -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

View file

@ -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

View file

@ -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:

View file

View file