Add missing Node install step to Actions + Formatting
Some checks failed
Run Tests on Code / run-tests (push) Failing after 11s

This commit is contained in:
Neshura 2023-12-19 22:19:21 +01:00
parent 5c59437595
commit 1f10a39db1
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C
2 changed files with 28 additions and 17 deletions

View file

@ -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

View file

@ -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
-
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