Skip to content

Commit

Permalink
added npm tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eneoli committed Sep 5, 2024
1 parent f1f7045 commit eb5af12
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 22 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/automatic_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Automatic tests

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

env:
CARGO_TERM_COLOR: always

jobs:
build-backend:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
build-frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install NodeJs
uses: actions/setup-node@v4
with:
node-version: 20.9.0
- name: Install npm packages
run: npm i
working-directory: frontend
- name: Build frontend
run: npm run prod
working-directory: frontend
22 changes: 0 additions & 22 deletions .github/workflows/rust.yml

This file was deleted.

0 comments on commit eb5af12

Please sign in to comment.