From 1f10a39db1f0ac2973040371daec5b04743dfc07 Mon Sep 17 00:00:00 2001 From: Neshura Date: Tue, 19 Dec 2023 22:19:21 +0100 Subject: [PATCH] Add missing Node install step to Actions + Formatting --- .forgejo/workflows/build+release.yml | 32 +++++++++++++++++----------- .forgejo/workflows/test.yml | 13 +++++++---- 2 files changed, 28 insertions(+), 17 deletions(-) diff --git a/.forgejo/workflows/build+release.yml b/.forgejo/workflows/build+release.yml index f18a7ad..de71296 100644 --- a/.forgejo/workflows/build+release.yml +++ b/.forgejo/workflows/build+release.yml @@ -11,19 +11,25 @@ jobs: runs-on: docker container: rust:latest steps: - - name: Checking Out Repository Code - uses: https://code.forgejo.org/actions/checkout@v3 - - name: Run Clippy - run: cargo clippy - - name: Check if Version in Cargo.toml matches Tag - run: | - VERSION=$(cat Cargo.toml | grep -E "(^|\|)version =" | cut -f2- -d= | tr -d \" | tr -d " ") - if test $VERSION != "${{ github.ref_name }}"; then - echo "Expected Version is: '${{ github.ref_name }}' actual Version is: '$VERSION'"; - exit 1 - else - echo "Version is: '$VERSION'"; - fi + - + name: Installing Node + run: apt update && apt install -y nodejs + - + name: Checking Out Repository Code + uses: https://code.forgejo.org/actions/checkout@v3 + - + name: Run Clippy + run: cargo clippy + - + name: Check if Version in Cargo.toml matches Tag + run: | + VERSION=$(cat Cargo.toml | grep -E "(^|\|)version =" | cut -f2- -d= | tr -d \" | tr -d " ") + if test $VERSION != "${{ github.ref_name }}"; then + echo "Expected Version is: '${{ github.ref_name }}' actual Version is: '$VERSION'"; + exit 1 + else + echo "Version is: '$VERSION'"; + fi build: needs: test diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml index 2105f71..5cd6caa 100644 --- a/.forgejo/workflows/test.yml +++ b/.forgejo/workflows/test.yml @@ -12,7 +12,12 @@ jobs: runs-on: docker container: rust:latest steps: - - name: Checking Out Repository Code - uses: https://code.forgejo.org/actions/checkout@v3 - - name: Run Clippy - run: cargo clippy \ No newline at end of file + - + name: Installing Node + run: apt update && apt install -y nodejs + - + name: Checking Out Repository Code + uses: https://code.forgejo.org/actions/checkout@v3 + - + name: Run Clippy + run: cargo clippy \ No newline at end of file