Skip to content

Commit

Permalink
Add action pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliveriver authored Jul 27, 2024
1 parent 6b105f7 commit c79a07b
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Checks

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
check_client:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Build
run: cd server && dotnet build
check_server:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 20.x
cache: 'npm'
- name: Install yarn
run: npm install --global yarn
- name: Install packages
run: cd client && yarn install
- name: Lint
run: cd client && yarn lint
- name: Compile
run: cd client && npx tsc

0 comments on commit c79a07b

Please sign in to comment.