Skip to content

feat: Initialisation of API #12

feat: Initialisation of API

feat: Initialisation of API #12

Workflow file for this run

name: 🧪 Run tests
on:
pull_request:
types: [opened, synchronize]
jobs:
web:
name: 💻 Web
runs-on: ubuntu-latest
steps:
- name: 🛎️ Checkout
uses: actions/checkout@v4
- name: 🏭 Use Node.js
uses: actions/setup-node@v4
with:
node-version-file: ./web/package.json
- name: 📥 Install Web
working-directory: ./web
run: npm install
- name: 👾 Audit Web
working-directory: ./web
run: npm audit --audit-level=low
- name: 🧪 Test Web
working-directory: ./web
run: npm run test
- name: 👷‍♂️ Check Web
working-directory: ./web
run: npm run check
api:
name: 🌍 API
runs-on: ubuntu-latest
steps:
- name: 🛎️ Checkout
uses: actions/checkout@v4
- name: 👷‍♂️ Build API
working-directory: ./api
run: cargo build
- name: 🧪 Test API
working-directory: ./api
run: cargo test