43 lines
1.2 KiB
YAML
43 lines
1.2 KiB
YAML
name: Test and Build
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
main
|
|
|
|
jobs:
|
|
test-and-build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
# Checkout repository
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
with:
|
|
ssh-key: '${{ secrets.SSH_PRIVATE_KEY }}'
|
|
ssh-known-hosts: '${{ secrets.SSH_KNOWN_HOST }}'
|
|
|
|
# Install Cypress dependencies
|
|
# - name: Install Cypress dependencies
|
|
# run: |
|
|
# sudo apt-get update
|
|
# sudo apt-get install -y libgtk2.0-0t64 libgtk-3-0t64 libgbm-dev libnotify-dev libnss3 libxss1 libasound2t64 libxtst6 xauth xvfb
|
|
|
|
# Install Node.js
|
|
# - name: Setup Node.js
|
|
# uses: actions/setup-node@v4
|
|
# with:
|
|
# node-version: "24"
|
|
# - name: Install dependencies
|
|
# run: npm install
|
|
|
|
# Install rust toolchain
|
|
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
|
- uses: jetli/wasm-pack-action@v0.4.0
|
|
- name: Install Rust
|
|
run: |
|
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
|
curl https://drager.github.io/wasm-pack/installer/init.sh -sSf | sh
|
|
rustc --version
|
|
cargo --version
|
|
wasm-pack --version
|