Skip to content

CI: also try to build frontend #139

CI: also try to build frontend

CI: also try to build frontend #139

Workflow file for this run

name: Main

Check failure on line 1 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yml

Invalid workflow file

(Line: 55, Col: 9): There's not enough info to determine what you meant. Add one of these properties: run, shell, uses, with, working-directory
on:
push:
branches: [ main ]
# Always run on commits
pull_request:
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: -D warnings
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: nicknovitski/nix-develop@v1
- name: 'Install linera-storage-service'
uses: taiki-e/cache-cargo-install-action@v2
with:
tool: [email protected]
- name: 'Install linera-service'
uses: taiki-e/cache-cargo-install-action@v2
with:
tool: [email protected]
- run: |
ln -sf /opt/hostedtoolcache/linera-storage-service/bin/linera-storage-server /opt/hostedtoolcache/linera-service/bin/
- name: Run clippy
run: cargo clippy --locked --all-targets --all-features
- name: 'Compile Wasm app'
run: cargo build --locked --release --target wasm32-unknown-unknown
- name: 'Compile'
run: cargo build --locked
- name: 'Run tests'
run: cargo test --locked
- name: 'Generate puzzles'
run: cargo run --locked --bin gol -- create-puzzles
- name: 'Run code in README including code-generation'
run: linera extract-script-from-markdown backend/README.md | bash -ex
- name: 'Verify that code-generated files are unchanged'
run: git diff --exit-code
- name: Build frontend
- run: |
cd frontend
pnpm install
pnpm build
lint-cargo-fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: 'Put lint toolchain file in place'
run: ln -sf toolchains/nightly/rust-toolchain.toml
- uses: actions-rust-lang/setup-rust-toolchain@v1
- name: 'Check formatting'
run: cargo fmt -- --check