This commit is contained in:
@@ -36,7 +36,17 @@ jobs:
|
|||||||
EXPECTED_EXTERNAL_TESTS: '10'
|
EXPECTED_EXTERNAL_TESTS: '10'
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
env:
|
||||||
|
GITEA_JOB_TOKEN: ${{ gitea.token }}
|
||||||
|
run: |
|
||||||
|
set -Eeuo pipefail
|
||||||
|
auth="$(printf 'x-access-token:%s' "$GITEA_JOB_TOKEN" | base64 | tr -d '\n')"
|
||||||
|
git init .
|
||||||
|
git remote add origin "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git"
|
||||||
|
git -c http.extraHeader="Authorization: Basic ${auth}" \
|
||||||
|
fetch --no-tags --depth=1 origin "$GITHUB_REF"
|
||||||
|
git checkout --detach "$GITHUB_SHA"
|
||||||
|
test "$(git rev-parse HEAD)" = "$GITHUB_SHA"
|
||||||
|
|
||||||
- name: Verify migration line endings
|
- name: Verify migration line endings
|
||||||
run: |
|
run: |
|
||||||
@@ -54,10 +64,16 @@ jobs:
|
|||||||
PY
|
PY
|
||||||
|
|
||||||
- name: Install Rust toolchain
|
- name: Install Rust toolchain
|
||||||
uses: dtolnay/rust-toolchain@stable
|
run: |
|
||||||
with:
|
set -Eeuo pipefail
|
||||||
toolchain: '1.92'
|
curl --proto '=https' --tlsv1.2 --fail --silent --show-error \
|
||||||
components: rustfmt, clippy
|
--location --retry 10 --retry-connrefused https://sh.rustup.rs \
|
||||||
|
| sh -s -- -y --default-toolchain none --profile minimal
|
||||||
|
/root/.cargo/bin/rustup toolchain install 1.92 \
|
||||||
|
--profile minimal --component rustfmt --component clippy --no-self-update
|
||||||
|
/root/.cargo/bin/rustup default 1.92
|
||||||
|
echo /root/.cargo/bin >> "$GITHUB_PATH"
|
||||||
|
/root/.cargo/bin/rustc --version --verbose
|
||||||
|
|
||||||
- name: Check Rust formatting
|
- name: Check Rust formatting
|
||||||
run: cargo fmt --all -- --check
|
run: cargo fmt --all -- --check
|
||||||
@@ -78,11 +94,9 @@ jobs:
|
|||||||
run: cargo audit
|
run: cargo audit
|
||||||
|
|
||||||
- name: Install Node.js
|
- name: Install Node.js
|
||||||
uses: actions/setup-node@v4
|
run: |
|
||||||
with:
|
node --version | grep --extended-regexp '^v22\.'
|
||||||
node-version: '22'
|
npm --version
|
||||||
cache: npm
|
|
||||||
cache-dependency-path: frontend/package-lock.json
|
|
||||||
|
|
||||||
- name: Build frontend
|
- name: Build frontend
|
||||||
working-directory: frontend
|
working-directory: frontend
|
||||||
|
|||||||
Reference in New Issue
Block a user