itsscb 75a8f830eb
feat(workflow): refactor that shuttle deploy works without dirty (#34)
* feat(workflow): refactor that shuttle deploy works without dirty

* ref(workflow): packages whole project for deployment

* fix(workflow): ignore failed read on packaging

* fix(workflow): package whole dir instead of zipping it

* fix(workflow): fix invalid artifact name in job deploy
2024-09-07 00:50:21 +02:00

42 lines
969 B
YAML

on:
pull_request:
branches:
- master
permissions:
contents: write
issues: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: cache dependencies
uses: actions/cache@v4
with:
path: |
~/.rustup/
~/.cargo/registry/
~/.cargo/bin/
~/.cache/trunk/
frontend/target/
target/
frontend/node_modules/
node_modules/
key: ${{ runner.os }}-cargo-${{ hashFiles('./Cargo.lock', '~/.cargo/bin/trunk', '**/rust-toolchain.toml', '**/rust-toolchain') }}
restore-keys: ${{ runner.os }}-cargo-wordl
- name: install rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
- name: run frontend tests
working-directory: ./frontend/
run: |
cargo test