This commit is contained in:
itsscb 2024-08-23 16:24:22 +02:00 committed by GitHub
parent a538204d3b
commit b281e87304
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,11 +19,10 @@ jobs:
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
path: | path: |
node_modules
~/.cache/trunk
~/.cargo ~/.cargo
target/ target/
~/.cache/trunk
node_modules
frontend/dist/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-df restore-keys: ${{ runner.os }}-cargo-df
@ -45,19 +44,16 @@ jobs:
node-version: 20 node-version: 20
- name: Install Tailwind CSS - name: Install Tailwind CSS
run: npm install -D tailwindcss run: npm install -g tailwindcss
working-directory: ./frontend
- name: Build Frontend - name: Build Frontend
working-directory: ./frontend working-directory: ./frontend
run: | run: |
trunk build --release trunk build --release
- name: Build and Test backend - name: Build and Test backend
run: | run: |
cargo build --verbose --release cargo build --verbose --release
cargo test --verbose cargo test --verbose
deploy: deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build needs: build