Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: improvements #8

Merged
merged 3 commits into from
Apr 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,29 @@ jobs:
- uses: actions/setup-dotnet@v4
with:
dotnet-version: "8.x"
cache: true
cache-dependency-path: ./server/packages.lock.json
- run: pnpm i

- name: Lint client
run: pnpm lint
working-directory: "./client"
working-directory: ./client

- name: Build client
run: pnpm client:build

- name: Build server
run: pnpm server:build

- name: Build docker
run: pnpm docker:build

- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build docker
run: pnpm docker:build
if: github.ref == 'refs/heads/main'

- name: Push docker
run: pnpm docker:push
Expand Down
1 change: 1 addition & 0 deletions server/MinigolfFriday.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<InvariantGlobalization>true</InvariantGlobalization>
<UserSecretsId>d202c6ce-6225-4dd2-a10e-291bb0b1131a</UserSecretsId>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
</PropertyGroup>

<ItemGroup>
Expand Down
Loading
Loading