mirror of
https://github.com/OHTU-German-learning-website/OHTU-German-learning-website.git
synced 2026-10-12 19:13:51 +03:00
34 lines
917 B
YAML
34 lines
917 B
YAML
name: Lint, format and test (and deploy)
|
|
on:
|
|
pull_request:
|
|
types: [opened, reopened, synchronize]
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
lint-format-test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Start databases
|
|
run: docker compose up -d
|
|
- name: Cache Node.js modules
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: ./gradesa/node_modules
|
|
key: ${{ runner.os }}-node-${{ hashFiles('./gradesa/package-lock.json') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-node-
|
|
- name: Install Node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
cache-dependency-path: ./gradesa/package-lock.json
|
|
node-version: 22.6
|
|
cache: "npm"
|
|
- name: Install client dependencies
|
|
run: npm install
|
|
working-directory: ./gradesa
|
|
- name: Run tests
|
|
run: echo "All good"
|