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 79b5990
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ env:
CARGO_TERM_COLOR: always

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

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

Build (client):
Build_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
working-directory: ./client
- name: Build
run: npm run build
working-directory: ./client

Lint (client):
Lint_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
working-directory: ./client
- name: Lint
run: npx prettier .
working-directory: ./client

0 comments on commit 79b5990

Please sign in to comment.