itsscb 3eba25740c feat(workflow): improves cache and removes the need for --allow-dirty
Update prod.yml

Update .gitignore

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

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

fix(workflow): invalid files in cache key

fix(workflow): cache not working
2024-09-07 01:21:54 +02:00

42 lines
954 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', './frontend/package-lock.json') }}
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