Add missing Node install step to Actions + Formatting
Some checks failed
Run Tests on Code / run-tests (push) Failing after 11s
Some checks failed
Run Tests on Code / run-tests (push) Failing after 11s
This commit is contained in:
parent
5c59437595
commit
1f10a39db1
2 changed files with 28 additions and 17 deletions
|
@ -11,19 +11,25 @@ jobs:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container: rust:latest
|
container: rust:latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checking Out Repository Code
|
-
|
||||||
uses: https://code.forgejo.org/actions/checkout@v3
|
name: Installing Node
|
||||||
- name: Run Clippy
|
run: apt update && apt install -y nodejs
|
||||||
run: cargo clippy
|
-
|
||||||
- name: Check if Version in Cargo.toml matches Tag
|
name: Checking Out Repository Code
|
||||||
run: |
|
uses: https://code.forgejo.org/actions/checkout@v3
|
||||||
VERSION=$(cat Cargo.toml | grep -E "(^|\|)version =" | cut -f2- -d= | tr -d \" | tr -d " ")
|
-
|
||||||
if test $VERSION != "${{ github.ref_name }}"; then
|
name: Run Clippy
|
||||||
echo "Expected Version is: '${{ github.ref_name }}' actual Version is: '$VERSION'";
|
run: cargo clippy
|
||||||
exit 1
|
-
|
||||||
else
|
name: Check if Version in Cargo.toml matches Tag
|
||||||
echo "Version is: '$VERSION'";
|
run: |
|
||||||
fi
|
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:
|
build:
|
||||||
needs: test
|
needs: test
|
||||||
|
|
|
@ -12,7 +12,12 @@ jobs:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container: rust:latest
|
container: rust:latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checking Out Repository Code
|
-
|
||||||
uses: https://code.forgejo.org/actions/checkout@v3
|
name: Installing Node
|
||||||
- name: Run Clippy
|
run: apt update && apt install -y nodejs
|
||||||
run: cargo clippy
|
-
|
||||||
|
name: Checking Out Repository Code
|
||||||
|
uses: https://code.forgejo.org/actions/checkout@v3
|
||||||
|
-
|
||||||
|
name: Run Clippy
|
||||||
|
run: cargo clippy
|
Loading…
Reference in a new issue