From 645cdcb11394422cd4b48e889cc8398455fffc63 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 | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 322f33c..9412637 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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 @@ -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