From 79b5990661164e690be857777ce8809ab55b3312 Mon Sep 17 00:00:00 2001 From: Peter Hebden Date: Tue, 30 Jan 2024 22:43:10 +0000 Subject: [PATCH] Fix workflows --- .github/workflows/ci.yml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 322f33c..f5ec81e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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