feat: Initialisation of API #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |