Fix some major points for the presentation on Thursday #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
- name: Install Rust stable | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
# 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 |