Toegevoegd #81
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: Production CI | |
on: | |
pull_request: | |
branches: [master] | |
env: | |
VITE_API_URL: ${{ secrets.VITE_API_URL }} | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Node 16.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.x | |
cache: npm | |
- name: Install dependencies ⚙️ | |
run: npm ci | |
- name: Build frontend 👷 | |
run: npm run build | |
- name: Formatting frontend 🎨 | |
run: npm run format | |
- name: Linting frontend 🎗 | |
run: npm run format | |
- name: Testing frontend 🧪` | |
run: npm test --if-present |