Skip to content

Commit

Permalink
Fix workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Piturnah committed Jan 30, 2024
1 parent 9bfbe00 commit 645cdcb
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ env:
CARGO_TERM_COLOR: always

jobs:
Test (server):
Test_server:
env:
working-directory: ./server
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -20,11 +22,12 @@ jobs:
toolchain: stable
profile: minimal
override: true
- run: cd server
- name: Test
run: cargo test

Lint (server):
Lint_server:
env:
working-directory: ./server
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -35,33 +38,34 @@ jobs:
profile: minimal
components: clippy, rustfmt
override: true
- run: cd server
- name: Clippy
run: cargo clippy -- -D warnings
- name: Format
run: cargo fmt --check

Build (client):
Build_client:
env:
working-directory: ./client
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '20.x'
- run: cd client
- name: Install dependencies
run: npm install
- name: Build
run: npm run build

Lint (client):
Lint_client:
env:
working-directory: ./client
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '20.x'
- run: cd client
- name: Install dependencies
run: npm install
- name: Lint
Expand Down

0 comments on commit 645cdcb

Please sign in to comment.