fix: Correction du PATH dans toutes les étapes de la CI
Some checks failed
build-and-push-ext / build_push (push) Failing after 23s
Some checks failed
build-and-push-ext / build_push (push) Failing after 23s
- Ajout de la variable d'environnement PATH dans chaque étape - Source de l'environnement Rust dans toutes les étapes - Correction du PATH pour wasm-pack dans toutes les étapes - Toutes les étapes ont maintenant accès aux outils Rust
This commit is contained in:
parent
9eb3255fdf
commit
5b0fa00aad
@ -33,6 +33,8 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
|
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
|
||||||
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
|
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
|
||||||
|
env:
|
||||||
|
PATH: ${{ env.PATH }}:$HOME/.cargo/bin
|
||||||
|
|
||||||
- name: Setup SSH for git clone
|
- name: Setup SSH for git clone
|
||||||
run: |
|
run: |
|
||||||
@ -49,12 +51,22 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
source $HOME/.cargo/env
|
source $HOME/.cargo/env
|
||||||
npm run build_wasm
|
npm run build_wasm
|
||||||
|
env:
|
||||||
|
PATH: ${{ env.PATH }}:$HOME/.cargo/bin
|
||||||
|
|
||||||
- name: Build project
|
- name: Build project
|
||||||
run: npm run build
|
run: |
|
||||||
|
source $HOME/.cargo/env
|
||||||
|
npm run build
|
||||||
|
env:
|
||||||
|
PATH: ${{ env.PATH }}:$HOME/.cargo/bin
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: npx vitest run
|
run: |
|
||||||
|
source $HOME/.cargo/env
|
||||||
|
npx vitest run
|
||||||
|
env:
|
||||||
|
PATH: ${{ env.PATH }}:$HOME/.cargo/bin
|
||||||
|
|
||||||
- name: Docker login (git.4nkweb.com)
|
- name: Docker login (git.4nkweb.com)
|
||||||
shell: bash
|
shell: bash
|
||||||
|
Loading…
x
Reference in New Issue
Block a user