Skip to content

Fix some major points for the presentation on Thursday #5

Fix some major points for the presentation on Thursday

Fix some major points for the presentation on Thursday #5

Workflow file for this run

name: Build Vite
on:
push:
branches:
- main # You can adjust this to your branch name
pull_request:
branches:
- main # You can adjust this to your branch name
jobs:
build:
runs-on: ubuntu-latest
steps:
# Step 1: Checkout the repository
- name: Checkout repository
uses: actions/checkout@v3
# Step 2: Set up Rust and wasm-pack
- name: Install Rust stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Install wasm-pack
run: cargo install wasm-pack
# Step 3: Set up Node.js (You can specify the version you use)
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18' # Change this if you're using a different version
# Step 4: Install dependencies for Vue.js and Vite
- name: Install Node.js dependencies
run: npm install
working-directory: ./query-by-graph
# Step 5: Run the build script (npm run build)
- name: Run build script
run: npm run build
working-directory: ./query-by-graph
# Step 6: Fail the build if there are errors
- name: Fail the build if the build script fails
if: ${{ failure() }}
run: exit 1