feat: check pull requests and commits using conventional commits #2
Workflow file for this run
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@v3 | |
- name: 🏭 Use Node.js | |
uses: actions/setup-node@v3 | |
- 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: 👷♂️ Build Web | |
working-directory: ./web | |
run: npm run build | |
api: | |
name: 🌍 API | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🛎️ Checkout | |
uses: actions/checkout@v3 | |
- name: 👷♂️ Build API | |
working-directory: ./api | |
run: cargo build | |
- name: 🧪 Test API | |
working-directory: ./api | |
run: cargo test |